From b97e52210a6b586aab0e63e43b1b7fcbfa938905 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 21 Sep 2018 14:58:34 +0800 Subject: [PATCH] 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. --- components/freertos/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/freertos/CMakeLists.txt b/components/freertos/CMakeLists.txt index 96a0d2b5fc..1017fc310d 100644 --- a/components/freertos/CMakeLists.txt +++ b/components/freertos/CMakeLists.txt @@ -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()