From 4469658fb1219aa30afb760c50d4b9b48da30b88 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Fri, 24 May 2019 16:10:51 +0900 Subject: kbuild: remove unneeded patterns from distclean Drop the following patterns based on Linux. [1] -size 0 Linux commit f4b129f519f1bbd191dca2bf17d1137edf941fd1 [2] '.*.cmd' Linux commit a03fcb50e816a69acffb13b5e56db75063aeba8a [3] (second) '.*.orig' '.*.rej' Linux commit f78271dfb77353c4d045f9735deebe21839fb2ed Signed-off-by: Masahiro Yamada Signed-off-by: Sascha Hauer --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 29347b6780..1027cecebf 100644 --- a/Makefile +++ b/Makefile @@ -1020,9 +1020,8 @@ PHONY += distclean distclean: mrproper @find $(srctree) $(RCS_FIND_IGNORE) \ \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ - -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ - -o -name '.*.rej' -o -size 0 \ - -o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \ + -o -name '*.bak' -o -name '#*#' -o -name '*%' \ + -o -name 'core' \) \ -type f -print | xargs rm -f -- cgit v1.2.3 From b917f7864115a35fbb9e69af2c1d553a110a37fc Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Fri, 7 Jun 2019 09:06:57 +0200 Subject: remove CONFIG_DEBUG_INFO The ELF file should have debug symbols, the binary should have no symbols any way. Signed-off-by: Oleksij Rempel Signed-off-by: Rouven Czerwinski Signed-off-by: Sascha Hauer --- Makefile | 4 +--- common/Kconfig | 6 ------ 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3