projects
/
openwrt
/
staging
/
rmilecki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
946291c
)
add a config item to specify arguments to strip
author
Nicolas Thill
<nico@openwrt.org>
Fri, 22 Jan 2010 08:12:20 +0000
(08:12 +0000)
committer
Nicolas Thill
<nico@openwrt.org>
Fri, 22 Jan 2010 08:12:20 +0000
(08:12 +0000)
SVN-Revision: 19270
Config.in
patch
|
blob
|
history
rules.mk
patch
|
blob
|
history
diff --git
a/Config.in
b/Config.in
index 1f689c0664a40d996cee3b5ae7e758399d2db1b6..c798510f0c1c32851e0d6aa06fd323154f1a722e 100644
(file)
--- a/
Config.in
+++ b/
Config.in
@@
-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
bool "Strip unnecessary functions from libraries"
help
config USE_MKLIBS
bool "Strip unnecessary functions from libraries"
help
diff --git
a/rules.mk
b/rules.mk
index 31c8854e9d222fcb0975cdd07b0e7fd7af3842ae..3473b212de4b6b4c1e054e435517c50b88117694 100644
(file)
--- a/
rules.mk
+++ b/
rules.mk
@@
-174,7
+174,7
@@
ifneq ($(CONFIG_NO_STRIP),)
STRIP:=:
else
ifneq ($(CONFIG_USE_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
else
ifneq ($(CONFIG_USE_SSTRIP),)
STRIP:=$(STAGING_DIR_HOST)/bin/sstrip