libutee: use CFG_TEE_PANIC_DEBUG setting
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 <ced78d268b4c9a0a20a59a9feeebd2ad90da03d3@linaro.org>
Reviewed-by: Pascal Brand <0b55292d2562685bad4ce52d64f802e8f1cd299e@linaro.org>
Reviewed-by: Jens Wiklander <7706914404370d7502c27a0eff493dcf491feb51@linaro.org>

pascal-brand-st-dev/optee_os,matt2048/optee_os,matt2048/optee_os,Microsoft/optee_os,cedric-chaumont-st-dev/optee_os,Microsoft/optee_os,matt2048/optee_os,pascal-brand-st-dev/optee_os,matt2048/optee_os,pascal-brand-st-dev/optee_os,cedric-chaumont-st-dev/optee_os,pascal-brand-st-dev/optee_os,Microsoft/optee_os,Microsoft/optee_os,Microsoft/optee_os,cedric-chaumont-st-dev/optee_os,cedric-chaumont-st-dev/optee_os,pascal-brand-st-dev/optee_os