add a config item to specify arguments to strip
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 22 Jan 2010 08:12:20 +0000 (08:12 +0000)
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 22 Jan 2010 08:12:20 +0000 (08:12 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19270 3c298f89-4303-0410-b956-a3cf2f4a3e73

Config.in
rules.mk

index 1f689c0..c798510 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -173,6 +173,15 @@ choice
 
 endchoice
 
+config STRIP_ARGS
+       string
+       prompt "Strip arguments"
+       depends USE_STRIP
+       default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
+       default "--strip-all"
+       help
+         Specifies arguments passed to the strip command when stripping binaries
+
 config USE_MKLIBS
        bool "Strip unnecessary functions from libraries"
        help
index 31c8854..3473b21 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -174,7 +174,7 @@ ifneq ($(CONFIG_NO_STRIP),)
   STRIP:=:
 else
   ifneq ($(CONFIG_USE_STRIP),)
-    STRIP:=$(TARGET_CROSS)strip
+    STRIP:=$(TARGET_CROSS)strip $(call qstrip,$(CONFIG_STRIP_ARGS))
   else
     ifneq ($(CONFIG_USE_SSTRIP),)
       STRIP:=$(STAGING_DIR_HOST)/bin/sstrip
This page took 0.025462 seconds and 4 git commands to generate.