diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-06-26 20:44:48 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-06-26 20:44:48 +0000 |
commit | 414fef65ce5e17b3a9d3cbcde85e5346fc52c16a (patch) | |
tree | e3f7c2da110055f0cfe4341fd52b405d698eaf87 /toolchain | |
parent | cc44a0b0da7dce0fbf454ea4e3471b0d929e6a51 (diff) | |
download | upstream-414fef65ce5e17b3a9d3cbcde85e5346fc52c16a.tar.gz upstream-414fef65ce5e17b3a9d3cbcde85e5346fc52c16a.tar.bz2 upstream-414fef65ce5e17b3a9d3cbcde85e5346fc52c16a.zip |
remove support for building kernel headers with old kernels
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21957 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/kernel-headers/Makefile | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile index 75bf221efc..d2d12c71ae 100644 --- a/toolchain/kernel-headers/Makefile +++ b/toolchain/kernel-headers/Makefile @@ -31,9 +31,7 @@ ifeq ($(strip $(BOARD)),uml) LINUX_KARCH:=$(subst x86_64,x86,$(subst i386,x86,$(ARCH))) endif -ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.18)),1) - LINUX_HAS_HEADERS_INSTALL:=y -endif +LINUX_HAS_HEADERS_INSTALL:=y KMAKE := $(MAKE) -C $(HOST_BUILD_DIR) \ ARCH=$(LINUX_KARCH) \ @@ -43,8 +41,7 @@ KMAKE := $(MAKE) -C $(HOST_BUILD_DIR) \ KBUILD_HAVE_NLS=no \ CONFIG_SHELL=$(BASH) -ifneq ($(LINUX_HAS_HEADERS_INSTALL),) - define Host/Prepare/all +define Host/Prepare/all mkdir -p $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr $(KMAKE) \ INSTALL_HDR_PATH="$(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/" \ @@ -55,17 +52,7 @@ ifneq ($(LINUX_HAS_HEADERS_INSTALL),) $(HOST_BUILD_DIR)/arch/$(LINUX_KARCH)/include/asm/. \ $(HOST_BUILD_DIR)/include/asm-$(LINUX_KARCH)/; \ fi - endef -else - define Host/Prepare/all - $(KMAKE) include/linux/version.h include/asm - mkdir -p $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include - cp -pLR $(HOST_BUILD_DIR)/include/asm $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/ - cp -pLR $(HOST_BUILD_DIR)/include/asm-generic $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/ - cp -pLR $(HOST_BUILD_DIR)/include/asm-$(LINUX_KARCH) $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/ - cp -pLR $(HOST_BUILD_DIR)/include/linux $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/ - endef -endif +endef # XXX: the following is needed to build lzma-loader define Host/Prepare/lzma |