Cross compiler toolchain

From Linux PARISC Wiki
Revision as of 07:10, 24 March 2022 by Deller (Talk | contribs)

Jump to: navigation, search

Cross compiling the Linux kernel for PA-RISC is easy nowadays:

Contents

Debian

 apt install gcc-hppa-linux-gnu gcc-hppa64-linux-gnu

Fedora

 yum install gcc-hppa64-linux-gnu gcc-hppa-linux-gnu binutils-hppa64-linux-gnu binutils-hppa-linux-gnu

Download prebuilt cross compilers for PA-RISC

How to build the kernel

 make ARCH=parisc menuconfig
 make ARCH=parisc

Starting with Kernel v5.17 you don't need to give CROSS_COMPILE= on the command line any longer, just run:

 make ARCH=parisc                         # to build a 32-bit kernel
 or
 make ARCH=parisc64                       # to build a 64-bit kernel
Personal tools