[Buildroot] [PATCH] Kernel build fix related to external toolchain use

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Nov 4 19:10:21 UTC 2008


Le Tue, 4 Nov 2008 18:23:14 +0100,
Thomas Petazzoni <thomas.petazzoni at free-electrons.com> a écrit :

>  1) remove the option "linux (same version as linux headers)" when an
>     external toolchain is used ;

Kernel build fix related to external toolchain use

This patch prevents the user from select "linux (Same version as linux
headers)" as a choice for building the kernel when an external binary
toolchain is used, since "same version as linux headers" doesn't make
sense when an external toolchain is used.

It fixes the issue encountered by Hartley <hartleys at visionengravers.com>

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 target/Config.in |    7 +++++++
 1 file changed, 7 insertions(+)

Index: buildroot2/target/Config.in
===================================================================
--- buildroot2.orig/target/Config.in
+++ buildroot2/target/Config.in
@@ -45,6 +45,11 @@
 	        kernel headers are just that (headers) and not full
 	        kernels. This is a feature.
 
+# The kernel with the same version as linux headers cannot be compiled
+# when using an external toolchain, because the linux headers are not
+# handled by Buildroot in this case.
+if BR2_TOOLCHAIN_SOURCE
+
 config BR2_KERNEL_LINUX
 	bool "linux (Same version as linux headers)"
 	select BR2_PACKAGE_LINUX
@@ -56,6 +61,8 @@
 	        kernel headers are just that (headers) and not full
 	        kernels. This is a feature.
 
+endif
+
 config BR2_KERNEL_HURD
 	bool "hurd"
 	help


-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list