1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-23 21:37:10 +02:00

remove support for building kernel headers with old kernels

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21957 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2010-06-26 20:44:48 +00:00
parent 5b8b96e823
commit 45d7da383e

View File

@ -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
KMAKE := $(MAKE) -C $(HOST_BUILD_DIR) \
ARCH=$(LINUX_KARCH) \
@ -43,7 +41,6 @@ KMAKE := $(MAKE) -C $(HOST_BUILD_DIR) \
KBUILD_HAVE_NLS=no \
CONFIG_SHELL=$(BASH)
ifneq ($(LINUX_HAS_HEADERS_INSTALL),)
define Host/Prepare/all
mkdir -p $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr
$(KMAKE) \
@ -56,16 +53,6 @@ ifneq ($(LINUX_HAS_HEADERS_INSTALL),)
$(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
# XXX: the following is needed to build lzma-loader
define Host/Prepare/lzma