adds missing patch for native toolchain
authorJohn Crispin <john@openwrt.org>
Tue, 10 Jun 2008 07:18:41 +0000 (07:18 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 10 Jun 2008 07:18:41 +0000 (07:18 +0000)
SVN-Revision: 11425

Config.in
rules.mk

index 1e8f9e28dbb96d537b9beaabe543db6defc422c0..b9716e8b2c1e57f6089fe8bcb83715ab47462aea 100644 (file)
--- 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" 
index 6d6dab09bcfd77febe164f3206dc3b1028081472..7153a04c2d7a72374a38ef6590317e0f16a8c295 100644 (file)
--- 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:=