Skip to contentSkip to conversation

uclibc: enable debug build option

PATCH New Peter Seiderer 2 participants 2 messages May 15, 2016 – May 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 uclibc: enable debug build option

Set uClibc DODEBUG in case BR2_ENABLE_DEBUG is set.

Setting DODEBUG was removed with commit 70b7079d3797304fe3c9ba2941d3f446af3cea79 in Dec. 2013 because of build failures with the old uClibc (now replaced with uClibc-ng), no build failure with raspberrypi3_defconfig and BR2_ENABLE_DEBUG enabled.

---
Changes v1 --> v2:
- fix 'DODEBUG=y' typo (spotted by Thomas Petazzoni)
- fix uClibc spelling
- add DODEBUG history hint

---
 package/uclibc/uclibc.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)
package/uclibc/uclibc.mk +10 -0
index b8ccee2..6782682 100644
@@ -182,6 +182,15 @@ endef
 endif
 
 #
+# Debug
+#
+ifeq ($(BR2_ENABLE_DEBUG),y)
+define UCLIBC_DEBUG_CONFIG
+	$(call KCONFIG_ENABLE_OPT,DODEBUG,$(@D)/.config)
+endef
+endif
+
+#
 # Endianness
 #
 
@@ -394,6 +403,7 @@ define UCLIBC_KCONFIG_FIXUP_CMDS
 	$(UCLIBC_SPARC_TYPE_CONFIG)
 	$(UCLIBC_POWERPC_TYPE_CONFIG)
 	$(UCLIBC_X86_TYPE_CONFIG)
+	$(UCLIBC_DEBUG_CONFIG)
 	$(UCLIBC_ENDIAN_CONFIG)
 	$(UCLIBC_LARGEFILE_CONFIG)
 	$(UCLIBC_IPV6_CONFIG)
Signature · 1 line
2.8.1
#1 lore raw

PATCH v2 1/1 uclibc: enable debug build option

Hello,

Quoted 8 lines · Peter Seiderer

Set uClibc DODEBUG in case BR2_ENABLE_DEBUG is set.

Setting DODEBUG was removed with commit 70b7079d3797304fe3c9ba2941d3f446af3cea79 in Dec. 2013 because of build failures with the old uClibc (now replaced with uClibc-ng), no build failure with raspberrypi3_defconfig and BR2_ENABLE_DEBUG enabled.

Quoted 8 lines

---
Changes v1 --> v2:
- fix 'DODEBUG=y' typo (spotted by Thomas Petazzoni)
- fix uClibc spelling
- add DODEBUG history hint

---
 package/uclibc/uclibc.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com