From c76f4b40eb8f2939944b3c201c2692bc07d6867d Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Fri, 3 Oct 2014 10:22:05 -0700 Subject: [PATCH] Change GDB_DEBUG to SOURCE_DEBUG With introduction of GDB support the GDB_DEBUG make parameter sounds misleading. Let's change it to SOURCE_DEBUG. It is still quite useful when debugging with GDB, but can be used with any debugger. BUG=None TEST=built coreboot with SOURCE_DEBUG in the environment, observed it compiled as expected Change-Id: Ia6cfddfa1764fb070f4d35f374ed4f35e38d38fe Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/221386 Reviewed-by: Julius Werner --- Makefile.inc | 2 +- payloads/libpayload/Makefile.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.inc b/Makefile.inc index 8cec74669d..32952e449d 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -186,7 +186,7 @@ ifeq ($(CONFIG_WARNINGS_ARE_ERRORS),y) CFLAGS_common += -Werror endif CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer -ifneq ($(GDB_DEBUG),) +ifneq ($(SOURCE_DEBUG),) CFLAGS_common += -O0 else CFLAGS_common += -Os diff --git a/payloads/libpayload/Makefile.inc b/payloads/libpayload/Makefile.inc index ea9e404f46..f03968492d 100644 --- a/payloads/libpayload/Makefile.inc +++ b/payloads/libpayload/Makefile.inc @@ -61,7 +61,7 @@ CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs CFLAGS += -Wstrict-aliasing -Wshadow -Werror -ifneq ($(GDB_DEBUG),) +ifneq ($(SOURCE_DEBUG),) CFLAGS += -O0 -g else CFLAGS += -Os