summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2019-06-07 09:06:57 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-06-07 09:27:11 +0200
commitb917f7864115a35fbb9e69af2c1d553a110a37fc (patch)
tree2a71456867ff066c2dc3ca4180d69e9cee599428
parent008b0d432860d019918d64f190b18d2b3e7d324e (diff)
downloadbarebox-b917f7864115a35fbb9e69af2c1d553a110a37fc.tar.gz
barebox-b917f7864115a35fbb9e69af2c1d553a110a37fc.tar.xz
remove CONFIG_DEBUG_INFO
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> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--Makefile4
-rw-r--r--common/Kconfig6
2 files changed, 1 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 1027cecebf..52f5483560 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