cmake: add app_trace as FreeRTOS dependency

This is needed because FreeRTOSConfig.h includes header file provided
by app_trace when CONFIG_SYSVIEW_ENABLE=y.
This commit is contained in:
Ivan Grokhotkov
2018-09-21 14:58:34 +08:00
parent 315f18766c
commit c4ce84bba5

View File

@ -17,7 +17,10 @@ set(COMPONENT_SRCS "FreeRTOS-openocd.c"
"xtensa_overlay_os_hook.c"
"xtensa_vector_defaults.S"
"xtensa_vectors.S")
set(COMPONENT_REQUIRES)
# app_trace is required by FreeRTOS headers only when CONFIG_SYSVIEW_ENABLE=y,
# but requirements can't depend on config options, so always require it.
set(COMPONENT_REQUIRES app_trace)
register_component()