[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
howtos:slackware_admin:cross_compiling_the_linux_kernel [2018/06/01 22:36 (UTC)] – [Kernel compilation] bifferos | howtos:slackware_admin:cross_compiling_the_linux_kernel [2018/06/01 22:47 (UTC)] – [Kernel compilation] bifferos | ||
---|---|---|---|
Line 29: | Line 29: | ||
< | < | ||
- | You can play around with many options like kernel | + | To make the compiler we are about to build behave more like the Slackware one we want to use glibc instead of the default uClibc-ng (which is more suited to embedded applications): |
+ | |||
+ | < | ||
+ | |||
+ | If you don't do this you will need to disable stack protection in your kernel compile and we want to keep a standard Slackware config, because we're true Slackers heart-and-soul right? :). | ||
+ | |||
+ | You can play around with many other options like kernel | ||
< | < | ||
Line 45: | Line 51: | ||
==== Kernel compilation ==== | ==== Kernel compilation ==== | ||
- | When the Buildroot build is done, you need to include the cross-compiler in your path. | + | When the Buildroot build is done, you need to include the generated |
< | < | ||
- | The compiler executable has the architecture prefix in it's name to avoid collision with the system | + | The compiler executable has the architecture prefix in it's name to avoid collision with the system |
< | < | ||
- | If you are interested, you can find all the other toolchain tools like ld, ar and so on with similar prefixes. | + | If you are interested, you can find all the other toolchain tools like ld, ar and so on with similar prefixes. |
< | < | ||
$ make menuconfig CROSS_COMPILE=i486-linux- ARCH=i386</ | $ make menuconfig CROSS_COMPILE=i486-linux- ARCH=i386</ | ||
- | Finally make the kernel: | + | I'm leaving the default options here, just appending a ' |
< | < |