(9) Add one line to make.conf

The MAKEOPTS variable defines how many parallel compilations should occur when compiling a package. A common choice is the number of CPU cores plus one. You can always go back and edit this at a latter time. The Raspberry Pi 2 is Quad Core, but it only has 1Gb of RAM.


root@raspberrypi:/mnt/genoot#  nano -w /mnt/genoot/etc/portage/make.conf

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -ffast-math"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="armv7a-hardfloat-linux-gnueabi"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="bindist mmal neon"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"


Add this one line at the bottom, you can experiment with a more exciting value such as -j5 post install.


MAKEOPTS="-j4"

While many people report -j5 works well for every day use, it is not guaranteed to be best in all circumstances.

You might also notice, that because I used the optimised Raspberry Stage-3, that it has the matching CFLAGS. It also has USE flags "neon" and "mmal" pre-set. If you used the default gentoo stage-3, a much less ambitious set of Cflags and USE flags are set by default.

Next : Copy the DNS across

PREVIOUS INDEX NEXT