aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2008-06-10 07:18:41 +0000
committerJohn Crispin <blogic@openwrt.org>2008-06-10 07:18:41 +0000
commit00ee3a96d1698bb86e51d0ea1fa2c5dc8b8ebd1d (patch)
tree600275254679c20517388907252ad1c5afb1b831
parent7007ab6dddd97d50e49a300cea8f5d094a4a27cd (diff)
downloadmaster-187ad058-00ee3a96d1698bb86e51d0ea1fa2c5dc8b8ebd1d.tar.gz
master-187ad058-00ee3a96d1698bb86e51d0ea1fa2c5dc8b8ebd1d.tar.bz2
master-187ad058-00ee3a96d1698bb86e51d0ea1fa2c5dc8b8ebd1d.zip
adds missing patch for native toolchain
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11425 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--Config.in4
-rw-r--r--rules.mk14
2 files changed, 13 insertions, 5 deletions
diff --git a/Config.in b/Config.in
index 1e8f9e28db..b9716e8b2c 100644
--- a/Config.in
+++ b/Config.in
@@ -142,6 +142,10 @@ config EXTERNAL_KERNEL_TREE
prompt "Use external kernel tree" if DEVEL
default ""
+config BUILD_DEVELOPER_SYSTEM
+ bool "build a non-stripped system, so gcc can be run natively on target" if DEVEL
+ default n
+
source "toolchain/Config.in"
menuconfig BUILDSYSTEM_SETTINGS
bool "Buildsystem settings"
diff --git a/rules.mk b/rules.mk
index 6d6dab09bc..7153a04c2d 100644
--- a/rules.mk
+++ b/rules.mk
@@ -120,11 +120,15 @@ TARGET_CONFIGURE_OPTS:= \
SIZE=$(TARGET_CROSS)size
# strip an entire directory
-RSTRIP:= \
- NM="$(TARGET_CROSS)nm" \
- STRIP="$(STRIP)" \
- STRIP_KMOD="$(TARGET_CROSS)strip --strip-unneeded --remove-section=.comment" \
- $(SCRIPT_DIR)/rstrip.sh
+ifneq ($(CONFIG_BUILD_DEVELOPER_SYSTEM),)
+ RSTRIP:=:
+else
+ RSTRIP:= \
+ NM="$(TARGET_CROSS)nm" \
+ STRIP="$(STRIP)" \
+ STRIP_KMOD="$(TARGET_CROSS)strip --strip-unneeded --remove-section=.comment" \
+ $(SCRIPT_DIR)/rstrip.sh
+endif
ifeq ($(CONFIG_ENABLE_LOCALE),true)
DISABLE_NLS:=