diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-02-10 03:52:39 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-02-10 03:52:39 +0000 |
commit | ac36e7bbbfcf8ec780c38dfa40c799331a5c83da (patch) | |
tree | 15179119f3ea11209fb8af111799c628f932a696 /toolchain | |
parent | 9cb5393d300dad349db59d620e186a0b60e4b3a5 (diff) | |
download | upstream-ac36e7bbbfcf8ec780c38dfa40c799331a5c83da.tar.gz upstream-ac36e7bbbfcf8ec780c38dfa40c799331a5c83da.tar.bz2 upstream-ac36e7bbbfcf8ec780c38dfa40c799331a5c83da.zip |
kernel-headers: get rid of the arch/$(ARCH)/include/asm vs include/asm-$(ARCH) copying mess and stick to what the kernel is using
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25443 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/kernel-headers/Makefile | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile index 614c405155..2a90e3d98a 100644 --- a/toolchain/kernel-headers/Makefile +++ b/toolchain/kernel-headers/Makefile @@ -46,21 +46,17 @@ define Host/Prepare/all $(KMAKE) \ INSTALL_HDR_PATH="$(BUILD_DIR_TOOLCHAIN)/linux-dev/" \ headers_install - if [ -d $(HOST_BUILD_DIR)/arch/$(LINUX_KARCH)/include/asm ]; then \ - mkdir -p $(HOST_BUILD_DIR)/include/asm-$(LINUX_KARCH); \ - $(CP) \ - $(HOST_BUILD_DIR)/arch/$(LINUX_KARCH)/include/asm/. \ - $(HOST_BUILD_DIR)/include/asm-$(LINUX_KARCH)/; \ - fi endef # XXX: the following is needed to build lzma-loader -define Host/Prepare/lzma +ifneq ($(CONFIG_mips)$(CONFIG_mipsel),) + define Host/Prepare/lzma $(CP) \ - $(HOST_BUILD_DIR)/include/asm-mips/asm.h \ - $(HOST_BUILD_DIR)/include/asm-mips/regdef.h \ + $(HOST_BUILD_DIR)/arch/mips/include/asm/asm.h \ + $(HOST_BUILD_DIR)/arch/mips/include/asm/regdef.h \ $(BUILD_DIR_TOOLCHAIN)/linux-dev/include/asm/ -endef + endef +endif define Host/Prepare/post/cris $(CP) \ |