From 8f2b7e31247e9f0c9cbf702f955b9777b21130aa Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 30 Jan 2011 13:14:06 +0100 Subject: allow to use strip, even when debug is on. required for gdbserver setups. --- mk/package.mk | 3 +++ target/config/Config.in.adk | 7 +++++++ 2 files changed, 10 insertions(+) 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 -- cgit v1.2.3