summaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/kernel-headers/Config.in5
-rw-r--r--toolchain/kernel-headers/kernel-headers.mk12
2 files changed, 17 insertions, 0 deletions
diff --git a/toolchain/kernel-headers/Config.in b/toolchain/kernel-headers/Config.in
index 5bf02bab0..b43537bc7 100644
--- a/toolchain/kernel-headers/Config.in
+++ b/toolchain/kernel-headers/Config.in
@@ -38,6 +38,10 @@ choice
depends !BR2_nios2
bool "Linux 2.6.12 kernel headers"
+ config BR2_KERNEL_HEADERS_2_6_18
+ depends !BR2_nios2
+ bool "Linux 2.6.18 kernel headers"
+
endchoice
config BR2_DEFAULT_KERNEL_HEADERS
@@ -49,3 +53,4 @@ config BR2_DEFAULT_KERNEL_HEADERS
default "2.6.9" if BR2_KERNEL_HEADERS_2_6_9
default "2.6.11" if BR2_KERNEL_HEADERS_2_6_11
default "2.6.12" if BR2_KERNEL_HEADERS_2_6_12
+ default "2.6.18" if BR2_KERNEL_HEADERS_2_6_18
diff --git a/toolchain/kernel-headers/kernel-headers.mk b/toolchain/kernel-headers/kernel-headers.mk
index 7fc708a11..6f3a6ad55 100644
--- a/toolchain/kernel-headers/kernel-headers.mk
+++ b/toolchain/kernel-headers/kernel-headers.mk
@@ -84,6 +84,15 @@ LINUX_HEADERS_SOURCE:=linux-libc-headers-2.6.12.0.tar.bz2
LINUX_HEADERS_UNPACK_DIR:=$(TOOL_BUILD_DIR)/linux-libc-headers-2.6.12.0
endif
+ifeq ("$(strip $(DEFAULT_KERNEL_HEADERS))","2.6.18")
+VERSION:=2
+PATCHLEVEL:=6
+SUBLEVEL:=18
+LINUX_HEADERS_SITE:=http://www.kernel.org/pub/linux/kernel/v2.6/
+LINUX_HEADERS_SOURCE:=linux-2.6.18.tar.bz2
+LINUX_HEADERS_UNPACK_DIR:=$(TOOL_BUILD_DIR)/linux-2.6.18
+endif
+
LINUX_HEADERS_VERSION:=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)
LINUX_HEADERS_DIR:=$(TOOL_BUILD_DIR)/linux
@@ -162,6 +171,9 @@ $(LINUX_HEADERS_DIR)/.configured: $(LINUX_HEADERS_DIR)/.patched
(cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-$(ARCH)$(NOMMU) asm;) \
fi
touch $(LINUX_HEADERS_DIR)/include/linux/autoconf.h;
+ifeq ("$(strip $(DEFAULT_KERNEL_HEADERS))","2.6.18")
+ (cd $(LINUX_HEADERS_DIR) ; $(MAKE) include/linux/version.h ; )
+endif
touch $(LINUX_HEADERS_DIR)/.configured
$(LINUX_KERNEL): $(LINUX_HEADERS_DIR)/.configured