Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
howtos:slackware_admin:cross_compiling_the_linux_kernel [2018/06/01 22:36 (UTC)]
bifferos [Kernel compilation]
howtos:slackware_admin:cross_compiling_the_linux_kernel [2018/06/01 22:42 (UTC)]
bifferos [Cross-compiler]
Line 29: Line 29:
 <​code>​Target options -> Target Architecture Variant (i486)</​code>​ <​code>​Target options -> Target Architecture Variant (i486)</​code>​
  
-You can play around with many options like kernel ​version and glibc etc.. however for building the kernel itself none of these matter. ​ The only option that may conceivably make a difference is the GCC version, particularly if you are building a particularly old kernel version which doesn'​t support later versions of GCC.  For this demonstration we can just leave all defaults though. ​ Save the config and then:+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):​ 
 + 
 +<​code>​Toolchain -> C library (glibc)</​code>​ 
 + 
 +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 ​header versions ​however for building the kernel itself none of these matter. ​ The only option that may conceivably make a difference is the GCC version, particularly if you are building a particularly old kernel version which doesn'​t support later versions of GCC.  For this demonstration we can leave the defaults though. ​ Save the config and then:
  
 <​code>​$ make</​code>​ <​code>​$ make</​code>​

In Other Languages
QR Code
QR Code howtos:slackware_admin:cross_compiling_the_linux_kernel (generated for current page)