summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2019-10-28 10:50:19 -0700
committerManoj Gupta <manojgupta@chromium.org>2019-10-28 22:17:14 +0000
commit8f0989e7bfc7f56a40f1dede727999934a6dc6e0 (patch)
treebd7aa2dc40504737cc651a026fd9165400263acc
parent86ed3884efe1bee509f2e94e2f718955f923e1bd (diff)
downloadvboot-8f0989e7bfc7f56a40f1dede727999934a6dc6e0.tar.gz
Always pass "-g" when building.
Always build vboot_reference with "-g" irrespective of debug mode. Building with "-g" will allow much better stack traces and debug information when debugging. Portage will strip the debug binaries so the size of final files installed on DUT will stay unchanged. BUG=chromium:1017793 TEST="-g" is passed to builds. Change-Id: Id6a718bc31afe4a12243ddbb1c45d411ab9791f0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1884690 Tested-by: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1a483800..e34dff5b 100644
--- a/Makefile
+++ b/Makefile
@@ -135,7 +135,7 @@ endif
# permit a calling script or Makefile to set these.
#
# Flag ordering: arch, then -f, then -m, then -W
-DEBUG_FLAGS := $(if ${DEBUG},-g -O0,-Os)
+DEBUG_FLAGS := $(if ${DEBUG},-g -O0,-g -Os)
WERROR := -Werror
FIRMWARE_FLAGS := -nostdinc -ffreestanding -fno-builtin -fno-stack-protector
COMMON_FLAGS := -pipe ${WERROR} -Wall -Wstrict-prototypes -Wtype-limits \