From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page Handbook:HPPA/Blocks/Kernel and the translation is 45% complete.
Outdated translations are marked like this.

Compiler et installer

To compile a 64-bit kernel, first emerge sys-devel/kgcc64. 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:

root #make && make modules_install

If building a 64-bit kernel, do this instead (it's necessary even for native builds, see here):

root #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 MAKEOPTS variable.

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-6.6.13-gentoo with the name and version of the installed kernel.

root #cp vmlinux /boot/kernel-6.6.13-gentoo