summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.tyminski <r.tyminski@partner.samsung.com>2017-11-15 14:30:36 (GMT)
committerDong Sun Lee <ds73.lee@samsung.com>2017-11-22 23:52:49 (GMT)
commit493442391fcebb623711f41789b2346902aa6ce9 (patch)
tree0a678023f54f4bf6e729309b5cde116b4703bffd
parent76264b17ab22e21271d913e45f7292e3168c9b68 (diff)
downloadtef-optee_os-493442391fcebb623711f41789b2346902aa6ce9.zip
tef-optee_os-493442391fcebb623711f41789b2346902aa6ce9.tar.gz
tef-optee_os-493442391fcebb623711f41789b2346902aa6ce9.tar.bz2
Setting low log level by default.refs/changes/55/160355/2
If there is need to see debug logs, please recompile with build_type=DEBUG. Change-Id: Ia3419dcec3acfe6b8e50a501438bdef414de2870
-rw-r--r--packaging/optee-os-rpi3.spec7
1 files changed, 6 insertions, 1 deletions
diff --git a/packaging/optee-os-rpi3.spec b/packaging/optee-os-rpi3.spec
index f91c664..85f1a49 100644
--- a/packaging/optee-os-rpi3.spec
+++ b/packaging/optee-os-rpi3.spec
@@ -1,5 +1,10 @@
%define buildplat rpi3
-%define compile_flags CROSS_COMPILE="" CROSS_COMPILE64="" PLATFORM=%{buildplat} CFLAGS=-lgcc_eh CFG_LIBUTEE_TUI=n CFG_TEE_CORE_LOG_LEVEL=3 DEBUG=0
+%if "%{build_type}" == "DEBUG"
+%define log_env CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=1
+%else
+%define log_env CFG_TEE_CORE_LOG_LEVEL=0 DEBUG=0
+%endif
+%define compile_flags CROSS_COMPILE="" CROSS_COMPILE64="" PLATFORM=%{buildplat} CFLAGS=-lgcc_eh CFG_LIBUTEE_TUI=n %{log_env}
%if %{__isa_bits} == 64
%define compile_arch %{compile_flags} CFG_ARM64_core=y
%else