aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/kernel-headers/Makefile
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2009-01-21 01:53:05 +0000
committerNicolas Thill <nico@openwrt.org>2009-01-21 01:53:05 +0000
commit22bc8ae40addc32fa5500ca2461d188f3aa29f9b (patch)
treeba1944bc579115c204e57d4a3d781c77da508a6e /toolchain/kernel-headers/Makefile
parent690c11aa9477215f954edda1cdd4a451790aa6a0 (diff)
downloadmaster-187ad058-22bc8ae40addc32fa5500ca2461d188f3aa29f9b.tar.gz
master-187ad058-22bc8ae40addc32fa5500ca2461d188f3aa29f9b.tar.bz2
master-187ad058-22bc8ae40addc32fa5500ca2461d188f3aa29f9b.zip
[toolchain] more kernel headers fixes for cris
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14128 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/kernel-headers/Makefile')
-rw-r--r--toolchain/kernel-headers/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile
index 0493e2acae..d787cf0a85 100644
--- a/toolchain/kernel-headers/Makefile
+++ b/toolchain/kernel-headers/Makefile
@@ -78,12 +78,27 @@ define Build/Prepare/lzma
$(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/asm/
endef
-# XXX: the following is needed to build final gcc on cris
+# XXX: the following are needed to build a cris toolchain
define Build/Prepare/post/cris
+ $(CP) \
+ $(PKG_BUILD_DIR)/include/linux/user.h \
+ $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/linux/
+ $(CP) \
+ $(PKG_BUILD_DIR)/include/asm-cris/elf.h \
+ $(PKG_BUILD_DIR)/include/asm-cris/page.h \
+ $(PKG_BUILD_DIR)/include/asm-cris/user.h \
+ $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/asm/
mkdir -p $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/asm/arch
$(CP) \
+ $(PKG_BUILD_DIR)/include/asm-cris/arch/elf.h \
+ $(PKG_BUILD_DIR)/include/asm-cris/arch/page.h \
$(PKG_BUILD_DIR)/include/asm-cris/arch/ptrace.h \
+ $(PKG_BUILD_DIR)/include/asm-cris/arch/user.h \
$(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/asm/arch/
+ $(CP) \
+ $(PKG_BUILD_DIR)/include/asm-generic/memory_model.h \
+ $(PKG_BUILD_DIR)/include/asm-generic/page.h \
+ $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/asm-generic/
endef
define Build/Prepare/post/mips