Преглед изворни кода

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

Waldemar Brodkorb пре 15 година
родитељ
комит
8f2b7e3124
2 измењених фајлова са 10 додато и 0 уклоњено
  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),)
 ifeq ($(ADK_DEBUG),)
 	$${RSTRIP} $${IDIR_$(1)} $(MAKE_TRACE)
 	$${RSTRIP} $${IDIR_$(1)} $(MAKE_TRACE)
 endif
 endif
+ifeq ($(ADK_DEBUG_STRIP),y)
+	$${RSTRIP} $${IDIR_$(1)} $(MAKE_TRACE)
+endif
 ifeq (${ADK_INSTALL_PACKAGE_INIT_SCRIPTS},y)
 ifeq (${ADK_INSTALL_PACKAGE_INIT_SCRIPTS},y)
 	@for file in $$$$(ls ./files/*.init 2>/dev/null); do \
 	@for file in $$$$(ls ./files/*.init 2>/dev/null); do \
 		fname=$$$$(echo $$$$file| sed -e "s#.*/##" -e "s#.init##"); \
 		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.
 	  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.
 	  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
 config ADK_STATIC
 	bool "Link applications statically by default"
 	bool "Link applications statically by default"
 	default n
 	default n