tracing: avoid building tracing code when not applicable

Do not build tracing system if provided otherwise, for example right now
systemview does not need any of the zephyr interfaces.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-02-06 14:05:40 -05:00
commit f05dbf9f6a
2 changed files with 11 additions and 7 deletions

View file

@ -6,12 +6,12 @@ zephyr_sources_ifdef(
)
zephyr_sources_ifdef(
CONFIG_TRACING
CONFIG_TRACING_CORE
tracing_buffer.c
tracing_core.c
tracing_format_common.c
)
if(CONFIG_TRACING_CORE)
zephyr_sources_ifdef(
CONFIG_TRACING_SYNC
tracing_format_sync.c
@ -36,6 +36,7 @@ zephyr_sources_ifdef(
CONFIG_TRACING_BACKEND_POSIX
tracing_backend_posix.c
)
endif()
zephyr_include_directories_ifdef(
CONFIG_TRACING