summaryrefslogtreecommitdiffstats
path: root/toolchain/kernel-headers/kernel-headers-new.makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-12-13 11:49:19 +0000
committerEric Andersen <andersen@codepoet.org>2006-12-13 11:49:19 +0000
commit64bc2777e56a43f5ddaca94301ca07792b9ef0ab (patch)
treedcf020c632797e54fad784edb0a2b3b58e93627d /toolchain/kernel-headers/kernel-headers-new.makefile
parented44d383161b258e442551b1acd40300de905954 (diff)
downloadbuildroot-novena-64bc2777e56a43f5ddaca94301ca07792b9ef0ab.tar.gz
buildroot-novena-64bc2777e56a43f5ddaca94301ca07792b9ef0ab.zip
split things up so this is not an unreadable mess
Diffstat (limited to 'toolchain/kernel-headers/kernel-headers-new.makefile')
-rw-r--r--toolchain/kernel-headers/kernel-headers-new.makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/toolchain/kernel-headers/kernel-headers-new.makefile b/toolchain/kernel-headers/kernel-headers-new.makefile
new file mode 100644
index 000000000..546d95c09
--- /dev/null
+++ b/toolchain/kernel-headers/kernel-headers-new.makefile
@@ -0,0 +1,39 @@
+#############################################################
+#
+# full kernel tarballs >= 2.6.19.1
+#
+#############################################################
+LINUX_HEADERS_IS_KERNEL=n
+
+ifeq ("$(DEFAULT_KERNEL_HEADERS)","2.6.19.1")
+VERSION:=2
+PATCHLEVEL:=6
+SUBLEVEL:=19
+EXTRAVERSION:=1
+LINUX_HEADERS_VERSION:=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
+LINUX_HEADERS_SITE:=http://www.kernel.org/pub/linux/kernel/v2.6/
+LINUX_HEADERS_SOURCE:=linux-$(LINUX_HEADERS_VERSION).tar.bz2
+LINUX_HEADERS_CAT:=$(BZCAT)
+LINUX_HEADERS_UNPACK_DIR:=$(TOOL_BUILD_DIR)/linux-$(LINUX_HEADERS_VERSION)
+LINUX_HEADERS_DIR:=$(TOOL_BUILD_DIR)/linux
+LINUX_HEADERS_IS_KERNEL=y
+endif
+
+ifeq ($(LINUX_HEADERS_IS_KERNEL),y)
+
+$(LINUX_HEADERS_UNPACK_DIR)/.unpacked: $(DL_DIR)/$(LINUX_HEADERS_SOURCE)
+ rm -rf $(LINUX_HEADERS_DIR)
+ $(LINUX_HEADERS_CAT) $(DL_DIR)/$(LINUX_HEADERS_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(LINUX_HEADERS_UNPACK_DIR)/.unpacked
+
+$(LINUX_HEADERS_UNPACK_DIR)/.patched: $(LINUX_HEADERS_UNPACK_DIR)/.unpacked
+ toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) toolchain/kernel-headers \
+ linux-$(LINUX_HEADERS_VERSION)-\*.patch{,.gz,.bz2}
+ touch $(LINUX_HEADERS_UNPACK_DIR)/.patched
+
+$(LINUX_HEADERS_DIR)/.configured: $(LINUX_HEADERS_UNPACK_DIR)/.patched
+ (cd $(LINUX_HEADERS_UNPACK_DIR) ; \
+ $(MAKE) ARCH=$(KERNEL_ARCH) INSTALL_HDR_PATH=$(LINUX_HEADERS_DIR) headers_install)
+ touch $(LINUX_HEADERS_DIR)/.configured
+
+endif