mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-01 19:47:29 +03:00
add a config item to specify arguments to strip
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19270 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3a27cd7fac
commit
1bf76dc757
@ -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
|
||||||
|
2
rules.mk
2
rules.mk
@ -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…
x
Reference in New Issue
Block a user