diff options
author | Nicolas Thill <nico@openwrt.org> | 2009-07-07 02:34:58 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2009-07-07 02:34:58 +0000 |
commit | 4702698c68be9023f5a7f4909c38f0d5ef5ef993 (patch) | |
tree | 33f8a57f1fbe3cb2e929b96d44dbf884cae44d62 /rules.mk | |
parent | 5a5f24ac230a0cc8b885858134c1c219b77954f8 (diff) | |
download | mtk-20170518-4702698c68be9023f5a7f4909c38f0d5ef5ef993.zip mtk-20170518-4702698c68be9023f5a7f4909c38f0d5ef5ef993.tar.gz mtk-20170518-4702698c68be9023f5a7f4909c38f0d5ef5ef993.tar.bz2 |
add a config option to select the binary stripping method to use (between none, strip & sstrip)
SVN-Revision: 16728
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -104,7 +104,6 @@ HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib TARGET_CC:=$(TARGET_CROSS)gcc TARGET_CXX:=$(if $(CONFIG_INSTALL_LIBSTDCPP),$(TARGET_CROSS)g++,no) -STRIP:=$(STAGING_DIR_HOST)/bin/sstrip PATCH:=$(SCRIPT_DIR)/patch-kernel.sh SED:=$(STAGING_DIR_HOST)/bin/sed -i -e CP:=cp -fpR @@ -137,7 +136,15 @@ TARGET_CONFIGURE_OPTS:= \ # strip an entire directory ifneq ($(CONFIG_NO_STRIP),) RSTRIP:=: + STRIP:=: else + ifneq ($(CONFIG_USE_STRIP),) + STRIP:=$(TARGET_CROSS)strip + else + ifneq ($(CONFIG_USE_SSTRIP),) + STRIP:=$(STAGING_DIR_HOST)/bin/sstrip + endif + endif RSTRIP:= \ NM="$(TARGET_CROSS)nm" \ STRIP="$(STRIP)" \ |