summaryrefslogtreecommitdiff
path: root/toolchain/uClibc
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-25 19:27:54 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-25 19:27:54 +0000
commit2ec723f522c93614cd7872ff3c538b8bd76e3279 (patch)
treeaafe7a8a3349155411f35aaaff7fad9bb4b564d1 /toolchain/uClibc
parent8779564240a4ddd4e90760706245b15d5fbe2bc8 (diff)
[toolchain] add menuconfig item to enable uClibc debug builds
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19860 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/uClibc')
-rw-r--r--toolchain/uClibc/Config.in8
-rw-r--r--toolchain/uClibc/Makefile4
2 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/uClibc/Config.in b/toolchain/uClibc/Config.in
index e7f016a4c5..82e978a129 100644
--- a/toolchain/uClibc/Config.in
+++ b/toolchain/uClibc/Config.in
@@ -18,3 +18,11 @@ choice
depends BROKEN
endchoice
+
+
+# Debug version.
+
+config UCLIBC_ENABLE_DEBUG
+ bool "Build with debug information"
+ depends on TOOLCHAINOPTS && USE_UCLIBC
+ default n
diff --git a/toolchain/uClibc/Makefile b/toolchain/uClibc/Makefile
index f1e6fedb82..4ea15f14bc 100644
--- a/toolchain/uClibc/Makefile
+++ b/toolchain/uClibc/Makefile
@@ -97,6 +97,10 @@ UCLIBC_MAKE = PATH='$(TARGET_PATH)' $(MAKE) -C $(HOST_BUILD_DIR) \
LIBGCC="$(subst libgcc.a,libgcc_initial.a,$(shell $(TARGET_CC) -print-libgcc-file-name))" \
DOSTRIP=""
+ifeq ($(CONFIG_UCLIBC_ENABLE_DEBUG),y)
+ UCLIBC_MAKE += DODEBUG=y
+endif
+
define Host/Compile
$(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(HOST_BUILD_DIR)/Rules.mak
$(UCLIBC_MAKE) PREFIX= all