mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
remove support for building kernel headers with old kernels
SVN-Revision: 21957
This commit is contained in:
parent
ff3d5025ac
commit
6f0f021c87
@ -31,9 +31,7 @@ ifeq ($(strip $(BOARD)),uml)
|
|||||||
LINUX_KARCH:=$(subst x86_64,x86,$(subst i386,x86,$(ARCH)))
|
LINUX_KARCH:=$(subst x86_64,x86,$(subst i386,x86,$(ARCH)))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.18)),1)
|
LINUX_HAS_HEADERS_INSTALL:=y
|
||||||
LINUX_HAS_HEADERS_INSTALL:=y
|
|
||||||
endif
|
|
||||||
|
|
||||||
KMAKE := $(MAKE) -C $(HOST_BUILD_DIR) \
|
KMAKE := $(MAKE) -C $(HOST_BUILD_DIR) \
|
||||||
ARCH=$(LINUX_KARCH) \
|
ARCH=$(LINUX_KARCH) \
|
||||||
@ -43,8 +41,7 @@ KMAKE := $(MAKE) -C $(HOST_BUILD_DIR) \
|
|||||||
KBUILD_HAVE_NLS=no \
|
KBUILD_HAVE_NLS=no \
|
||||||
CONFIG_SHELL=$(BASH)
|
CONFIG_SHELL=$(BASH)
|
||||||
|
|
||||||
ifneq ($(LINUX_HAS_HEADERS_INSTALL),)
|
define Host/Prepare/all
|
||||||
define Host/Prepare/all
|
|
||||||
mkdir -p $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr
|
mkdir -p $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr
|
||||||
$(KMAKE) \
|
$(KMAKE) \
|
||||||
INSTALL_HDR_PATH="$(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/" \
|
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)/arch/$(LINUX_KARCH)/include/asm/. \
|
||||||
$(HOST_BUILD_DIR)/include/asm-$(LINUX_KARCH)/; \
|
$(HOST_BUILD_DIR)/include/asm-$(LINUX_KARCH)/; \
|
||||||
fi
|
fi
|
||||||
endef
|
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
|
# XXX: the following is needed to build lzma-loader
|
||||||
define Host/Prepare/lzma
|
define Host/Prepare/lzma
|
||||||
|
Loading…
Reference in New Issue
Block a user