mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 22:59:40 +02:00
[toolchain] uClibc: enhance debug support (closes: #6118)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20031 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ad82a7e442
commit
34cb0380a2
@ -58,7 +58,10 @@ define Host/SetToolchainInfo
|
|||||||
$(SED) 's,^\(LIBC_SO_VERSION\)=.*,\1=$(LIBC_SO_VERSION),' $(TOOLCHAIN_DIR)/info.mk
|
$(SED) 's,^\(LIBC_SO_VERSION\)=.*,\1=$(LIBC_SO_VERSION),' $(TOOLCHAIN_DIR)/info.mk
|
||||||
endef
|
endef
|
||||||
|
|
||||||
GEN_CONFIG=$(SCRIPT_DIR)/kconfig.pl -n $(if $(wildcard $(CONFIG_DIR)/common),'+' $(CONFIG_DIR)/common) ./$(CONFIG_DIR)/$(ARCH)$(if $(wildcard $(CONFIG_DIR)/$(ARCH).$(BOARD)),.$(BOARD))
|
GEN_CONFIG=$(SCRIPT_DIR)/kconfig.pl -n \
|
||||||
|
$(if $(wildcard $(CONFIG_DIR)/common),'+' $(CONFIG_DIR)/common) \
|
||||||
|
$(if $(CONFIG_UCLIBC_ENABLE_DEBUG),$(if $(wildcard $(CONFIG_DIR)/debug),'+' $(CONFIG_DIR)/debug)) \
|
||||||
|
$(CONFIG_DIR)/$(ARCH)$(if $(wildcard $(CONFIG_DIR)/$(ARCH).$(BOARD)),.$(BOARD))
|
||||||
|
|
||||||
define Host/Prepare
|
define Host/Prepare
|
||||||
$(call Host/SetToolchainInfo)
|
$(call Host/SetToolchainInfo)
|
||||||
@ -100,10 +103,6 @@ UCLIBC_MAKE = PATH='$(TARGET_PATH)' $(MAKE) -C $(HOST_BUILD_DIR) \
|
|||||||
LIBGCC="$(subst libgcc.a,libgcc_initial.a,$(shell $(TARGET_CC) -print-libgcc-file-name))" \
|
LIBGCC="$(subst libgcc.a,libgcc_initial.a,$(shell $(TARGET_CC) -print-libgcc-file-name))" \
|
||||||
DOSTRIP=""
|
DOSTRIP=""
|
||||||
|
|
||||||
ifeq ($(CONFIG_UCLIBC_ENABLE_DEBUG),y)
|
|
||||||
UCLIBC_MAKE += DODEBUG=y
|
|
||||||
endif
|
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
$(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(HOST_BUILD_DIR)/Rules.mak
|
$(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(HOST_BUILD_DIR)/Rules.mak
|
||||||
$(UCLIBC_MAKE) PREFIX= all
|
$(UCLIBC_MAKE) PREFIX= all
|
||||||
|
6
toolchain/uClibc/config-0.9.30+nptl/debug
Normal file
6
toolchain/uClibc/config-0.9.30+nptl/debug
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
DODEBUG=y
|
||||||
|
DODEBUG_PT=y
|
||||||
|
PTHREADS_DEBUG_SUPPORT=y
|
||||||
|
SUPPORT_LD_DEBUG=y
|
||||||
|
SUPPORT_LD_DEBUG_EARLY=y
|
||||||
|
UCLIBC_MALLOC_DEBUGGING=y
|
6
toolchain/uClibc/config-0.9.30.1/debug
Normal file
6
toolchain/uClibc/config-0.9.30.1/debug
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
DODEBUG=y
|
||||||
|
DODEBUG_PT=y
|
||||||
|
PTHREADS_DEBUG_SUPPORT=y
|
||||||
|
SUPPORT_LD_DEBUG=y
|
||||||
|
SUPPORT_LD_DEBUG_EARLY=y
|
||||||
|
UCLIBC_MALLOC_DEBUGGING=y
|
6
toolchain/uClibc/config-0.9.30.2/debug
Normal file
6
toolchain/uClibc/config-0.9.30.2/debug
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
DODEBUG=y
|
||||||
|
DODEBUG_PT=y
|
||||||
|
PTHREADS_DEBUG_SUPPORT=y
|
||||||
|
SUPPORT_LD_DEBUG=y
|
||||||
|
SUPPORT_LD_DEBUG_EARLY=y
|
||||||
|
UCLIBC_MALLOC_DEBUGGING=y
|
Loading…
Reference in New Issue
Block a user