Browse Source

allow to use strip, even when debug is on. required for gdbserver setups.

Waldemar Brodkorb 14 years ago
parent
commit
8f2b7e3124
2 changed files with 10 additions and 0 deletions
  1. 3 0
      mk/package.mk
  2. 7 0
      target/config/Config.in.adk

+ 3 - 0
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##"); \

+ 7 - 0
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