mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v3 1/3] remove CONFIG_DEBUG_INFO
@ 2019-06-07  7:06 Rouven Czerwinski
  2019-06-07  7:06 ` [PATCH v3 2/3] add CONFIG_PBL_BREAK option Rouven Czerwinski
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Rouven Czerwinski @ 2019-06-07  7:06 UTC (permalink / raw)
  To: barebox; +Cc: Rouven Czerwinski, Oleksij Rempel

From: Oleksij Rempel <linux@rempel-privat.de>

The ELF file should have debug symbols, the binary should have no symbols any way.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
---
 Makefile       | 4 +---
 common/Kconfig | 6 ------
 2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/Makefile b/Makefile
index 29347b6780..900117e727 100644
--- a/Makefile
+++ b/Makefile
@@ -457,9 +457,7 @@ endif # $(dot-config)
 
 include $(srctree)/arch/$(ARCH)/Makefile
 
-ifdef CONFIG_DEBUG_INFO
-CFLAGS		+= -g
-endif
+CFLAGS		+= -ggdb3
 
 # Force gcc to behave correct even for buggy distributions
 CFLAGS          += $(call cc-option, -fno-stack-protector)
diff --git a/common/Kconfig b/common/Kconfig
index 7832df5c55..ffb7537592 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -999,12 +999,6 @@ config DEFAULT_LOGLEVEL
 	  7    debug-level messages (debug)
 	  8    verbose debug messages (vdebug)
 
-config DEBUG_INFO
-	bool
-	prompt "enable debug symbols"
-	help
-	  Enable build of barebox with -g.
-
 config DEBUG_LL
 	bool
 	depends on HAS_DEBUG_LL
-- 
2.21.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-06-11  8:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-07  7:06 [PATCH v3 1/3] remove CONFIG_DEBUG_INFO Rouven Czerwinski
2019-06-07  7:06 ` [PATCH v3 2/3] add CONFIG_PBL_BREAK option Rouven Czerwinski
2019-06-09 21:36   ` Ahmad Fatoum
2019-06-11  8:22     ` Sascha Hauer
2019-06-11  8:20   ` Sascha Hauer
2019-06-07  7:07 ` [PATCH v3 3/3] add gdb helper scripts to load barebox symbols Rouven Czerwinski
2019-06-07  7:27 ` [PATCH v3 1/3] remove CONFIG_DEBUG_INFO Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox