fix(freertos/cmock): Fix FreeRTOS CMock builds for v10.5.1 kernel

This commit fixes the FreeRTOS CMock component in the following ways:

- Updated include directories to work with vanilla FreeRTOS v10.5.1
`#include "portmacro.h"` style inclusion.
pull/12486/head
Darian Leung 2023-10-11 11:53:03 +08:00
rodzic 13f3a226bb
commit a23ba22fb7
2 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -14,7 +14,8 @@ set(include_dirs
"${original_freertos_dir}/esp_additions/include"
# Required because CMock tries to include "idf_additions.h" instead of "freertos/idf_additions.h"
"${original_freertos_dir}/esp_additions/include/freertos"
"${kernel_dir}/portable/linux/include" # For "freertos/portmacro.h"
"${kernel_dir}/portable/linux/include" # For "spinlock.h"
"${kernel_dir}/portable/linux/include/freertos" # For "portmacro.h"
"${kernel_dir}/include/freertos" # this is due to the way includes are generated in CMock (without freertos prefix)
)

Wyświetl plik

@ -37,4 +37,12 @@ menu "FreeRTOS"
hex
default 0x7FFFFFFF if !FREERTOS_SMP
default 0xFFFFFFFF if FREERTOS_SMP
config FREERTOS_UNICORE
# This invisible config ensures that ESP-IDF components are always built as single-core
# when building for CMock. CMock is currently only supported on the Linux target, and the
# Linux FreeRTOS port supports single-core only.
bool
default y
endmenu