###################################################### # # # QEMU chroot make.conf # # # ###################################################### I_KNOW_WHAT_I_AM_DOING=1 # ... maybe CHOST=aarch64-unknown-linux-gnu # CBUILD=x86_64-pc-linux-gnu # only for cross compiling ARCH=arm64 # HOSTCC=x86_64-pc-linux-gnu-gcc # ROOT=/usr/${CHOST}/ ACCEPT_LICENSE="Oracle-BCLA-JavaSE google-chrome" ACCEPT_KEYWORDS="arm64 ~arm64" USE="${ARCH} crossdev egl icu minizip nss openssl pcre16 postproc python qt5 script sqlite svc threads virt-network -modemmanager -pam -qt4 -seccomp -skia" # skia wants to link to neon stuff it doesn't build, in firefox anyway. # -seccomp to avoid unimplemented syscall in qeum # free with crossdev #CFLAGS="-O2 -pipe -fomit-frame-pointer" CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" # --map-whole-files Map whole files to memory (default on 64-bit hosts) # --no-map-whole-files Map relevant file parts to memory (default on 32-bit hosts) # --fix-cortex-a53-843419 (AArch64 only) Fix Cortex-A53 erratum 843419. # --fix-cortex-a53-835769 (AArch64 only) Fix Cortex-A53 erratum 835769. LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--fix-cortex-a53-843419 -Wl,--fix-cortex-a53-835769 -Wl,--no-map-whole-files" # need cross gcc-5.4.0 for distcc # distcc distcc-pump FEATURES="sandbox buildpkg noman noinfo nodoc userpriv usersandbox" #FEATURES="-collision-protect sandbox buildpkg noman noinfo nodoc" # Be sure we dont overwrite pkgs from another repo.. # PKGDIR=${ROOT}packages/ # PORTAGE_TMPDIR=${ROOT}tmp/ PKGDIR=/packages/ DISTDIR="/var/cache/distfiles" ELIBC="glibc" # PKG_CONFIG_PATH="${ROOT}usr/lib/pkgconfig/" PORTDIR_OVERLAY="/usr/local/last_out_of_the_past" L10N="en en-GB" LINGUAS="en en_GB" # added by NeddySeagoon from here down # where to find C++ cross g++ # CXX="/usr/x86_64-pc-linux-gnu/aarch64-unknown-linux-gnu/gcc-bin/5.3.0/aarch64-unknown-linux-gnu-g++" # where is the non gentoo native toolchain # /opt/cross/bin/aarch64-none-linux-gnu-gcc # CC="/opt/cross/bin/aarch64-none-linux-gnu-gcc" # CXX="/opt/cross/bin/aarch64-none-linux-gnu-g++" # even an original model B can do -j8 with cross distcc. # MAKEOPTS="-j5" # -j4 chokes on boost # we don't have the RAM for -j5 on most things but ... MAKEOPTS="-j8" # run package lists for lesser MAKEOPTS in .env # http://gentoo.tiscali.nl/ # http://gentoo.prz.rzeszow.pl GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://mirror.mdfnet.se/gentoo http://mirrors.163.com/gentoo/ http://gentoo.mirror.web4u.cz/ http://64.50.236.52/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.mneisen.org/ http://gentoo.mirror.pw.edu.pl/ http://mirror.mdfnet.se/mirror/gentoo http://ftp.gentoo.bg/ http://distfiles.gentoo.bg/ http://mirrors.ludost.net/gentoo/ http://mirror.hamakor.org.il/pub/mirrors/gentoo/ http://ftp.dei.uc.pt/pub/linux/gentoo/" INSTALL_MASK=" /usr/lib/systemd *.la" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" PORTAGE_ELOG_CLASSES="info wan error log qa" PORT_LOGDIR=/var/log/portage/ #PYTHON_SINGLE_TARGET="python3_4" #PYTHON_TARGETS="python2_7 python3_4" QEMU_USER_TARGETS="aarch64" QEMU_SOFTMMU_TARGETS="aarch64" # mouse keyboard on olde fashioned gentooee, evdev on the Pi INPUT_DEVICES="evdev mouse keyboard" # xf86-video-modesetting won't work with xorg-server-1.18.3 yet # vc4 is very new if it breaks, you can keep the pieces # nouveau is just for the chroot VIDEO_CARDS="nouveau fbdev vc4" # PORTDIR_OVERLAY="/var/lib/layman/unity-gentoo"