Define kernelversion if ext toolchain is used
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Thu, 10 Jan 2008 09:30:11 +0000 (09:30 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Thu, 10 Jan 2008 09:30:11 +0000 (09:30 -0000)
toolchain/kernel-headers/kernel-headers.mk

index 81dcab1ac35bcd3a74df1c2811b19eaf15c7687c..6cde8fba50427c35f75beff8b220116a7d1adcd2 100644 (file)
@@ -6,8 +6,14 @@
 # by a 'make clean' so don't put anything sacred in here...
 #
 #############################################################
+ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
+DEFAULT_KERNEL_HEADERS:=$(strip $(subst ",, $(BR2_LINUX26_VERSION)))
+#"))
+else
 DEFAULT_KERNEL_HEADERS:=$(strip $(subst ",, $(BR2_DEFAULT_KERNEL_HEADERS)))
 #"))
+endif
+
 LINUX_HEADERS_SITE:=127.0.0.1
 LINUX_HEADERS_SOURCE:=unspecified-kernel-headers
 LINUX_HEADERS_UNPACK_DIR:=$(TOOL_BUILD_DIR)/linux-libc-headers-null