aboutsummaryrefslogtreecommitdiff
path: root/ta
diff options
context:
space:
mode:
authorPascal Brand <pascal.brand@st.com>2015-12-03 10:27:35 +0100
committerPascal Brand <pascal.brand@st.com>2015-12-04 17:03:27 +0100
commit156fe6852f63f04bb2d3406a5526ed19d8eacebb (patch)
treee3f6af435b8ba65997b01b0f817530a6f485e927 /ta
parent945694b9c2ddece0bd10060d00121f8dcca9145e (diff)
build: fix definition of MDBG_ENABLE
Note that because of this bug, MDBG_ENABLE was always defined. Now, MDBG_ENABLE is not defined by default. Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU) Signed-off-by: Pascal Brand <pascal.brand@st.com>
Diffstat (limited to 'ta')
-rw-r--r--ta/mk/ta_dev_kit.mk4
-rw-r--r--ta/ta.mk4
2 files changed, 6 insertions, 2 deletions
diff --git a/ta/mk/ta_dev_kit.mk b/ta/mk/ta_dev_kit.mk
index 8183292c..f09106e4 100644
--- a/ta/mk/ta_dev_kit.mk
+++ b/ta/mk/ta_dev_kit.mk
@@ -56,7 +56,9 @@ cppflags$(sm) += -DCFG_TEE_PANIC_DEBUG=1
endif
cppflags$(sm) += -I. -I$(ta-dev-kit-dir)/include
-cppflags$(sm) += -DENABLE_MDBG=$(CFG_TEE_TA_MALLOC_DEBUG)
+ifeq ($(CFG_TEE_TA_MALLOC_DEBUG),y)
+cppflags$(sm) += -DENABLE_MDBG=1
+endif
include $(ta-dev-kit-dir)/mk/arch.mk
diff --git a/ta/ta.mk b/ta/ta.mk
index d0646476..1a942b9c 100644
--- a/ta/ta.mk
+++ b/ta/ta.mk
@@ -20,7 +20,9 @@ aflags$(sm) := $(platform-aflags) $($(sm)-platform-aflags)
# Config flags from mk/config.mk
cppflags$(sm) += -DTRACE_LEVEL=$(CFG_TEE_TA_LOG_LEVEL)
cppflags$(sm) += -DCFG_TEE_CORE_USER_MEM_DEBUG=$(CFG_TEE_CORE_USER_MEM_DEBUG)
-cppflags$(sm) += -DENABLE_MDBG=$(CFG_TEE_TA_MALLOC_DEBUG)
+ifeq ($(CFG_TEE_TA_MALLOC_DEBUG),y)
+cppflags$(sm) += -DENABLE_MDBG=1
+endif
base-prefix := $(sm)-