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>
This commit is contained in:
Andrew Boie 2017-04-11 11:12:54 -07:00
commit 06dc2f203f

View file

@ -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 \