1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-23 23:16:16 +02:00

[toolchain] add menuconfig item to enable uClibc debug builds

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19860 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2010-02-25 19:27:54 +00:00
parent 8779564240
commit 2ec723f522
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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