Cross compiler toolchain
From Linux PARISC Wiki
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