summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2008-06-10 07:18:41 +0000
committerJohn Crispin <john@openwrt.org>2008-06-10 07:18:41 +0000
commitc9d9f8045c5aebdfeb96d7f9833927751d854bc1 (patch)
tree23ca4ef3aee50468acaf784ace88dfa0d2bf0fec
parent80e70b78fd12c0ace10bb0f505aa4c8593b8981c (diff)
downloadmtk-20170518-c9d9f8045c5aebdfeb96d7f9833927751d854bc1.zip
mtk-20170518-c9d9f8045c5aebdfeb96d7f9833927751d854bc1.tar.gz
mtk-20170518-c9d9f8045c5aebdfeb96d7f9833927751d854bc1.tar.bz2
adds missing patch for native toolchain
SVN-Revision: 11425
-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 1e8f9e2..b9716e8 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 6d6dab0..7153a04 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:=