add a config item to specify arguments to strip

SVN-Revision: 19270
master
Nicolas Thill 15 years ago
parent 946291c8d5
commit 0f3c406bdb
  1. 9
      Config.in
  2. 2
      rules.mk

@ -173,6 +173,15 @@ choice
endchoice 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 config USE_MKLIBS
bool "Strip unnecessary functions from libraries" bool "Strip unnecessary functions from libraries"
help help

@ -174,7 +174,7 @@ ifneq ($(CONFIG_NO_STRIP),)
STRIP:=: STRIP:=:
else else
ifneq ($(CONFIG_USE_STRIP),) ifneq ($(CONFIG_USE_STRIP),)
STRIP:=$(TARGET_CROSS)strip STRIP:=$(TARGET_CROSS)strip $(call qstrip,$(CONFIG_STRIP_ARGS))
else else
ifneq ($(CONFIG_USE_SSTRIP),) ifneq ($(CONFIG_USE_SSTRIP),)
STRIP:=$(STAGING_DIR_HOST)/bin/sstrip STRIP:=$(STAGING_DIR_HOST)/bin/sstrip

Loading…
Cancel
Save