Compiler et installer
To compile a 64-bit kernel, first emerge . Running a 64-bit kernel used to be discouraged but should now be safe. If in doubt, only run a 64-bit kernel if the system has more than 4GB of RAM or if the server requires it, i.e. on the A500.
Now that the kernel is configured, it is time to compile and install it. Exit the configuration and start the compilation process:
make && make modules_install
If building a 64-bit kernel, do this instead (it's necessary even for native builds, see here):
CROSS_COMPILE=hppa64-unknown-linux-gnu- make && CROSS_COMPILE=hppa64-unknown-linux-gnu- make modules_install
It is possible to enable parallel builds using
make -jX with X being the number of parallel tasks that the build process is allowed to launch. This is similar to the instructions about /etc/portage/make.conf earlier, with the
When the kernel has finished compiling, copy the kernel image to /boot/. Use whatever name is appropriate for the kernel choice and remember it as it will be needed later on when configuring the bootloader. Remember to replace kernel-3.16.5-gentoo with the name and version of the installed kernel.
cp vmlinux /boot/kernel-3.16.5-gentoo