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 2e6e87816c
commit b97e52210a

View File

@ -16,7 +16,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()