From: Ivan Grokhotkov Date: Fri, 21 Sep 2018 06:58:34 +0000 (+0800) Subject: cmake: add app_trace as FreeRTOS dependency X-Git-Tag: v3.2-beta1~102^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b97e52210a6b586aab0e63e43b1b7fcbfa938905;p=esp-idf 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. --- 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()