Merge branch 'feat/esp-system-linux-support-update' into 'master'

feat(esp_system): Add linux support for freertos hooks and system init function

See merge request espressif/esp-idf!46570
This commit is contained in:
Guillaume Souchere
2026-04-02 11:31:42 +02:00
21 changed files with 405 additions and 54 deletions
+4
View File
@@ -30,3 +30,7 @@ idf_component_mock(INCLUDE_DIRS ${include_dirs}
idf_component_get_property(freertos_lib freertos COMPONENT_LIB)
target_compile_definitions(${freertos_lib} PUBLIC "projCOVERAGE_TEST=0")
# When using FreeRTOS mocks, prevent esp_system from providing main() so tests can provide their own
idf_component_get_property(esp_system_lib esp_system COMPONENT_LIB)
target_compile_definitions(${esp_system_lib} PRIVATE ESP_SYSTEM_LINUX_NO_MAIN)
+1
View File
@@ -44,6 +44,7 @@ menu "FreeRTOS"
# Linux FreeRTOS port supports single-core only.
bool
default y
select ESP_SYSTEM_SINGLE_CORE_MODE
config FREERTOS_NUMBER_OF_CORES
# Invisible option to configure the number of cores on which FreeRTOS runs