summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Boie <andrew.p.boie@intel.com>2017-04-11 11:12:54 -0700
committerAndrew Boie <andrew.p.boie@intel.com>2017-04-12 16:31:45 +0000
commit06dc2f203fa2a5fad3a5d7ce32bff7d16d9442a7 (patch)
treedf21bb276cb6d064aff873b1c3b7fb9da96cd743
parent8e22350651d3785205ef8334b839d214698ef280 (diff)
xtensa: fix CONFIG_DEBUG build
A patch moved the specification of debug flags to a KBUILD_CFLAGS_OPTIMIZE, but this Makefile wasn't updated. Change-Id: Ic0d23f95609798473298cda4c044981edabb3ed5 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
-rw-r--r--scripts/Makefile.toolchain.xcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.toolchain.xcc b/scripts/Makefile.toolchain.xcc
index b313d1854..9a314c277 100644
--- a/scripts/Makefile.toolchain.xcc
+++ b/scripts/Makefile.toolchain.xcc
@@ -79,7 +79,7 @@ KBUILD_CPPFLAGS += -I$(XTENSA_TOOLS_PATH)/lib/xcc/include \
-D'__builtin_unreachable()=while(1);'
# xt-xcc does not support -Og, replace with -O0
-KBUILD_CFLAGS:=$(patsubst -Og,-O0,${KBUILD_CFLAGS})
+KBUILD_CFLAGS_OPTIMIZE:=$(patsubst -Og,-O0,${KBUILD_CFLAGS_OPTIMIZE})
KBUILD_CXXFLAGS:=$(filter-out \
-std=c++11 \
-fno-reorder-functions \