aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/kernel-headers/Makefile
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2009-01-12 19:03:39 +0000
committerNicolas Thill <nico@openwrt.org>2009-01-12 19:03:39 +0000
commit2c1d444866fc630b700ee6c9f805749f8df5a544 (patch)
tree5bdbbb6efcecbed0268bcd26eb68f96fb85d8039 /toolchain/kernel-headers/Makefile
parentbf618cf1fd09b3de98a3e1e5d4a73ee8d793bdfe (diff)
downloadupstream-2c1d444866fc630b700ee6c9f805749f8df5a544.tar.gz
upstream-2c1d444866fc630b700ee6c9f805749f8df5a544.tar.bz2
upstream-2c1d444866fc630b700ee6c9f805749f8df5a544.zip
fix missing ptrace.h needed to build final gcc
SVN-Revision: 13995
Diffstat (limited to 'toolchain/kernel-headers/Makefile')
-rw-r--r--toolchain/kernel-headers/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile
index 2274ee2447..474ff6c71b 100644
--- a/toolchain/kernel-headers/Makefile
+++ b/toolchain/kernel-headers/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2006-2008 OpenWrt.org
+# Copyright (C) 2006-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -106,6 +106,14 @@ define Build/Install/post/lzma
$(TOOLCHAIN_DIR)/usr/include/asm/
endef
+# XXX: the following is needed to build final gcc on cris
+define Build/Install/post/cris
+ mkdir -p $(TOOLCHAIN_DIR)/usr/include/asm/arch
+ $(CP) \
+ $(PKG_BUILD_DIR)/include/asm-cris/arch/ptrace.h \
+ $(TOOLCHAIN_DIR)/usr/include/asm/arch/
+endef
+
define Build/Install/post/mips
$(call Build/Install/post/lzma)
endef