summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-11-04 19:58:48 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-11-04 19:58:48 +0000
commitab1c8b394381b7236cdd47bcb62b0eea76cb7b73 (patch)
treea516ed47e108e0c016b9392ce7a4835cf2ccf9a5
parentd1a7ffe8f91437c31b864646bb1dbcb4573b8ee1 (diff)
downloadbuildroot-novena-ab1c8b394381b7236cdd47bcb62b0eea76cb7b73.tar.gz
buildroot-novena-ab1c8b394381b7236cdd47bcb62b0eea76cb7b73.zip
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@visionengravers.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--target/Config.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/Config.in b/target/Config.in
index c6b2e3196..ca426c387 100644
--- a/target/Config.in
+++ b/target/Config.in
@@ -45,6 +45,11 @@ config BR2_KERNEL_LINUX_ADVANCED
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 @@ config BR2_KERNEL_LINUX
kernel headers are just that (headers) and not full
kernels. This is a feature.
+endif
+
config BR2_KERNEL_HURD
bool "hurd"
help