Просмотр исходного кода

add a config item to specify arguments to strip

SVN-Revision: 19270
Nicolas Thill 15 лет назад
Родитель
Сommit
0f3c406bdb
2 измененных файлов с 10 добавлено и 1 удалено
  1. 9 0
      Config.in
  2. 1 1
      rules.mk

+ 9 - 0
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

+ 1 - 1
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