From 9db332ba4931cc991f56cdc340b2204405ea14db Mon Sep 17 00:00:00 2001 From: Christof Schulze Date: Mon, 6 Feb 2017 07:54:18 +0100 Subject: [PATCH] add debug-flag to build system, if enabled set CONFIG_DEBUG and do not strip binaries --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index d1d925f8..bed2deff 100644 --- a/Makefile +++ b/Makefile @@ -99,6 +99,11 @@ config: FORCE && echo 'CONFIG_GLUON_RELEASE="$(GLUON_RELEASE)"' \ && echo 'CONFIG_GLUON_SITEDIR="$(GLUON_SITEDIR)"' \ && echo 'CONFIG_GLUON_BRANCH="$(GLUON_BRANCH)"' \ + $(if $(DEBUG),&& echo 'CONFIG_DEBUG=y' \ + && echo 'CONFIG_NO_STRIP=y' \ + && echo '# CONFIG_USE_STRIP is not set' \ + && echo '# CONFIG_USE_SSTRIP is not set' \ + && echo '# CONFIG_STRIP_KERNEL_EXPORTS is not set') \ ) > lede/.config +@$(LEDEMAKE) defconfig