forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 18
Building powerpc kernels
Michael Ellerman edited this page Oct 5, 2016
·
9 revisions
If you're not lucky enough to have a powerpc laptop, you can build with a cross compiler.
On Fedora you can install the required toolchain with:
sudo dnf install gcc-c++-powerpc64-linux-gnu binutils-powerpc64-linux-gnu gcc-powerpc64-linux-gnu
On Ubuntu use:
sudo apt-get install gcc-powerpc64le-linux-gnu gcc-powerpc-linux-gnu libc-dev-powerpc-cross libc-dev-ppc64el-cross
To build for little endian:
make ARCH=powerpc CROSS_COMPILE=powerpc64le-linux-gnu- pseries_le_defconfig
make ARCH=powerpc CROSS_COMPILE=powerpc64le-linux-gnu- vmlinux
Or big:
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- pseries_defconfig
make ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- vmlinux