diff options
-rw-r--r-- | mk/package.mk | 3 | ||||
-rw-r--r-- | target/config/Config.in.adk | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/mk/package.mk b/mk/package.mk index eded9c226..6565bad18 100644 --- a/mk/package.mk +++ b/mk/package.mk @@ -155,6 +155,9 @@ $$(IPKG_$(1)): $$(IDIR_$(1))/CONTROL/control $${_FAKE_COOKIE} ifeq ($(ADK_DEBUG),) $${RSTRIP} $${IDIR_$(1)} $(MAKE_TRACE) endif +ifeq ($(ADK_DEBUG_STRIP),y) + $${RSTRIP} $${IDIR_$(1)} $(MAKE_TRACE) +endif ifeq (${ADK_INSTALL_PACKAGE_INIT_SCRIPTS},y) @for file in $$$$(ls ./files/*.init 2>/dev/null); do \ fname=$$$$(echo $$$$file| sed -e "s#.*/##" -e "s#.init##"); \ diff --git a/target/config/Config.in.adk b/target/config/Config.in.adk index 18d4a2023..5eb2ad319 100644 --- a/target/config/Config.in.adk +++ b/target/config/Config.in.adk @@ -19,6 +19,13 @@ config ADK_DEBUG All packages and libc will be compiled and packaged with debug information. Mostly useful for NFS root or big USB/CF or hard disk setups. +config ADK_DEBUG_STRIP + bool "strip target binaries/libraries for gdbserver usage" + depends on ADK_DEBUG + default n + help + All packages and libc will be compiled with debug information, but stripped for the target. + config ADK_STATIC bool "Link applications statically by default" default n |