aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-09-29 18:09:24 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-09-29 18:09:24 +0000
commit41b9b028cad0f01d21c3bff060f1df99767a3ca6 (patch)
treee51a6583144e5257554d6728dfe19818ae996ec7 /toolchain
parent40dbbc9a67f07bc0af6f6e7e002df9960fb96ce3 (diff)
downloadmaster-187ad058-41b9b028cad0f01d21c3bff060f1df99767a3ca6.tar.gz
master-187ad058-41b9b028cad0f01d21c3bff060f1df99767a3ca6.tar.bz2
master-187ad058-41b9b028cad0f01d21c3bff060f1df99767a3ca6.zip
fix up the asm includes location for .27 when building kernel headers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12802 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/kernel-headers/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile
index 4443c43463..a182c83c1f 100644
--- a/toolchain/kernel-headers/Makefile
+++ b/toolchain/kernel-headers/Makefile
@@ -53,6 +53,11 @@ define Build/Prepare
ln -sf linux-$(LINUX_VERSION) $(LINUX_HEADERS_DIR)
yes '' | $(KMAKE) oldconfig
$(KMAKE) include/linux/version.h include/asm
+ if [ -d $(PKG_BUILD_DIR)/arch/$(LINUX_KARCH)/include/asm ]; then \
+ $(CP) \
+ $(PKG_BUILD_DIR)/arch/$(LINUX_KARCH)/include/asm/. \
+ $(PKG_BUILD_DIR)/include/asm-$(LINUX_KARCH)/; \
+ fi
$(call Build/Configure/$(ARCH))
endef