Skip to content
Snippets Groups Projects
Commit 0f3c406b authored by Nicolas Thill's avatar Nicolas Thill
Browse files

add a config item to specify arguments to strip

SVN-Revision: 19270
parent 946291c8
No related branches found
No related tags found
No related merge requests found
...@@ -173,6 +173,15 @@ choice ...@@ -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),) ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment