summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-08-15 21:27:31 -0600
committerChromeBot <chrome-bot@google.com>2013-08-25 16:57:26 -0700
commite4759b782dff166600dbbfac884462babb433fac (patch)
treea23440eead2c799f15f3975001fb14a42524d9da
parent981cb2acdc2f26ae27732a4e590c326787936381 (diff)
downloadvboot-e4759b782dff166600dbbfac884462babb433fac.tar.gz
Enable debug flags when building natively
It is still useful to build natively with debugging, particularly when improving test code, so add this to the compiler flags in this case. BUG=chrome-os-partner:21115 BRANCH=pit TEST=manual 'make DEBUG=1' in the vboot directory within the chroot. See that the test executables are now build with debugging info and gdb has line number information. Change-Id: Icaedae67151883673525930e25cf8b1f30654339 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/66172
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 403b4d62..21ed27e4 100644
--- a/Makefile
+++ b/Makefile
@@ -139,6 +139,7 @@ else
# FIRMWARE_ARCH not defined; assuming local compile.
CC ?= gcc
CFLAGS += -DCHROMEOS_ENVIRONMENT -Wall -Werror # HEY: always want last two?
+CFLAGS += ${DEBUG_FLAGS}
endif
ifneq (${OLDDIR},)