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:
parent
d9be19e40e
commit
f05dbf9f6a
2 changed files with 11 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue