aboutsummaryrefslogtreecommitdiff
path: root/ta
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2015-12-18 13:16:24 +0100
committerJerome Forissier <jerome.forissier@linaro.org>2015-12-21 15:04:31 +0100
commit4718d4b8e16cc5e0efec3cc218a22da0c68585c0 (patch)
treed8cee70fb849dcfb410b86eaf6c5eabf15f7ad91 /ta
parent050009e2343b7b799c9c93b658346ea14a052708 (diff)
libutee: use CFG_TEE_PANIC_DEBUG setting
When libutee is compiled, the configuration variable CFG_TEE_PANIC_DEBUG is not exported to the C code as a pre-processor macro (contrary to TEE core build, it does not happen automatically). As a result, all the calls to TEE_Panic() that occur in the GlobalPlatform API wrappers do not call EMSG() when the TA is about to panic. This commit fixes this issue by properly defining the C macro when the configuration variable is enabled. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'ta')
-rw-r--r--ta/ta.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/ta/ta.mk b/ta/ta.mk
index 9719c122..3f2a8217 100644
--- a/ta/ta.mk
+++ b/ta/ta.mk
@@ -23,6 +23,9 @@ cppflags$(sm) += -DCFG_TEE_CORE_USER_MEM_DEBUG=$(CFG_TEE_CORE_USER_MEM_DEBUG)
ifeq ($(CFG_TEE_TA_MALLOC_DEBUG),y)
cppflags$(sm) += -DENABLE_MDBG=1
endif
+ifeq ($(CFG_TEE_PANIC_DEBUG),y)
+cppflags$(sm) += -DCFG_TEE_PANIC_DEBUG=1
+endif
base-prefix := $(sm)-