summaryrefslogtreecommitdiff
path: root/toolchain/kernel-headers
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
commit7bf353216cf18da228a25a440a72274f3f2c4f07 (patch)
tree979331ad4064b87025d0d532336d20ddd1ebe196 /toolchain/kernel-headers
parent77703482ffe4dc6eb94ed6af88e084e2827f3bc4 (diff)
downloadmtk-20170518-7bf353216cf18da228a25a440a72274f3f2c4f07.zip
mtk-20170518-7bf353216cf18da228a25a440a72274f3f2c4f07.tar.gz
mtk-20170518-7bf353216cf18da228a25a440a72274f3f2c4f07.tar.bz2
fix up the asm includes location for .27 when building kernel headers
SVN-Revision: 12802
Diffstat (limited to 'toolchain/kernel-headers')
-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 4443c43..a182c83 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