spacepaste

  1.  
  2. ######################################################
  3. # #
  4. # QEMU chroot make.conf #
  5. # #
  6. ######################################################
  7. I_KNOW_WHAT_I_AM_DOING=1
  8. # ... maybe
  9. CHOST=aarch64-unknown-linux-gnu
  10. # CBUILD=x86_64-pc-linux-gnu # only for cross compiling
  11. ARCH=arm64
  12. # HOSTCC=x86_64-pc-linux-gnu-gcc
  13. # ROOT=/usr/${CHOST}/
  14. ACCEPT_LICENSE="Oracle-BCLA-JavaSE google-chrome"
  15. ACCEPT_KEYWORDS="arm64 ~arm64"
  16. USE="${ARCH} crossdev egl icu minizip nss openssl pcre16 postproc python
  17. qt5 script sqlite svc threads virt-network
  18. -modemmanager -pam -qt4 -seccomp -skia"
  19. # skia wants to link to neon stuff it doesn't build, in firefox anyway.
  20. # -seccomp to avoid unimplemented syscall in qeum
  21. # free with crossdev
  22. #CFLAGS="-O2 -pipe -fomit-frame-pointer"
  23. CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
  24. CXXFLAGS="${CFLAGS}"
  25. # --map-whole-files Map whole files to memory (default on 64-bit hosts)
  26. # --no-map-whole-files Map relevant file parts to memory (default on 32-bit hosts)
  27. # --fix-cortex-a53-843419 (AArch64 only) Fix Cortex-A53 erratum 843419.
  28. # --fix-cortex-a53-835769 (AArch64 only) Fix Cortex-A53 erratum 835769.
  29. LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--fix-cortex-a53-843419 -Wl,--fix-cortex-a53-835769 -Wl,--no-map-whole-files"
  30. # need cross gcc-5.4.0 for distcc
  31. # distcc distcc-pump
  32. FEATURES="sandbox buildpkg noman noinfo nodoc userpriv usersandbox"
  33. #FEATURES="-collision-protect sandbox buildpkg noman noinfo nodoc"
  34. # Be sure we dont overwrite pkgs from another repo..
  35. # PKGDIR=${ROOT}packages/
  36. # PORTAGE_TMPDIR=${ROOT}tmp/
  37. PKGDIR=/packages/
  38. DISTDIR="/var/cache/distfiles"
  39. ELIBC="glibc"
  40. # PKG_CONFIG_PATH="${ROOT}usr/lib/pkgconfig/"
  41. PORTDIR_OVERLAY="/usr/local/last_out_of_the_past"
  42. L10N="en en-GB"
  43. LINGUAS="en en_GB"
  44. # added by NeddySeagoon from here down
  45. # where to find C++ cross g++
  46. # CXX="/usr/x86_64-pc-linux-gnu/aarch64-unknown-linux-gnu/gcc-bin/5.3.0/aarch64-unknown-linux-gnu-g++"
  47. # where is the non gentoo native toolchain
  48. # /opt/cross/bin/aarch64-none-linux-gnu-gcc
  49. # CC="/opt/cross/bin/aarch64-none-linux-gnu-gcc"
  50. # CXX="/opt/cross/bin/aarch64-none-linux-gnu-g++"
  51. # even an original model B can do -j8 with cross distcc.
  52. # MAKEOPTS="-j5"
  53. # -j4 chokes on boost
  54. # we don't have the RAM for -j5 on most things but ...
  55. MAKEOPTS="-j8"
  56. # run package lists for lesser MAKEOPTS in .env
  57. # http://gentoo.tiscali.nl/
  58. # http://gentoo.prz.rzeszow.pl
  59. GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/
  60. http://mirror.mdfnet.se/gentoo
  61. http://mirrors.163.com/gentoo/
  62. http://gentoo.mirror.web4u.cz/
  63. http://64.50.236.52/
  64. http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
  65. http://gentoo.mneisen.org/
  66. http://gentoo.mirror.pw.edu.pl/
  67. http://mirror.mdfnet.se/mirror/gentoo
  68. http://ftp.gentoo.bg/
  69. http://distfiles.gentoo.bg/
  70. http://mirrors.ludost.net/gentoo/
  71. http://mirror.hamakor.org.il/pub/mirrors/gentoo/
  72. http://ftp.dei.uc.pt/pub/linux/gentoo/"
  73. INSTALL_MASK=" /usr/lib/systemd *.la"
  74. LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer"
  75. PORTAGE_ELOG_CLASSES="info wan error log qa"
  76. PORT_LOGDIR=/var/log/portage/
  77. #PYTHON_SINGLE_TARGET="python3_4"
  78. #PYTHON_TARGETS="python2_7 python3_4"
  79. QEMU_USER_TARGETS="aarch64"
  80. QEMU_SOFTMMU_TARGETS="aarch64"
  81. # mouse keyboard on olde fashioned gentooee, evdev on the Pi
  82. INPUT_DEVICES="evdev mouse keyboard"
  83. # xf86-video-modesetting won't work with xorg-server-1.18.3 yet
  84. # vc4 is very new if it breaks, you can keep the pieces
  85. # nouveau is just for the chroot
  86. VIDEO_CARDS="nouveau fbdev vc4"
  87. # PORTDIR_OVERLAY="/var/lib/layman/unity-gentoo"
  88.