mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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.
This commit is contained in:
parent
13f3a226bb
commit
a23ba22fb7
@ -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)
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user