more kernel headers fixes for cris
authorNicolas Thill <nico@openwrt.org>
Wed, 21 Jan 2009 01:53:05 +0000 (01:53 +0000)
committerNicolas Thill <nico@openwrt.org>
Wed, 21 Jan 2009 01:53:05 +0000 (01:53 +0000)
SVN-Revision: 14128

toolchain/kernel-headers/Makefile

index 0493e2acae6342e097a38595827ed84fe438d9fa..d787cf0a85a91c56e0616f85beaaf24277d2937f 100644 (file)
@@ -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