From 3dc035d8d6c348af0102f89edb3f862c260f8e1d Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Thu, 8 Aug 2024 12:29:08 +0200 Subject: [PATCH 1/2] fix(freertos): Added freertos fragments to the exception list of ldgen mapping checks This commit adds freertos and esp_ringbuf linker fragment sections to the exception list of the ldgen mappings checker script. --- tools/ci/check_ldgen_mapping_exceptions.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/ci/check_ldgen_mapping_exceptions.txt b/tools/ci/check_ldgen_mapping_exceptions.txt index c192068064..c2125e6b39 100644 --- a/tools/ci/check_ldgen_mapping_exceptions.txt +++ b/tools/ci/check_ldgen_mapping_exceptions.txt @@ -2,4 +2,7 @@ libc sha256_coredump gcc clang_rt_builtins +freertos_idf +freertos_smp freertos_common +esp_ringbuf From e90bb54f8b1dc02de093eba03559b28b1f02140e Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Thu, 8 Aug 2024 12:33:48 +0200 Subject: [PATCH 2/2] test(freertos): Added build test for function in flash with -Os optimation This commit adds a build test for when FreeRTOS and esp_ringbuf functions are placed in flash and the compiler optimizes for code size. --- .../system/build_test/sdkconfig.ci.func_in_flash_with_Os | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tools/test_apps/system/build_test/sdkconfig.ci.func_in_flash_with_Os diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.func_in_flash_with_Os b/tools/test_apps/system/build_test/sdkconfig.ci.func_in_flash_with_Os new file mode 100644 index 0000000000..a8af29c111 --- /dev/null +++ b/tools/test_apps/system/build_test/sdkconfig.ci.func_in_flash_with_Os @@ -0,0 +1,4 @@ +CONFIG_COMPILER_OPTIMIZATION_SIZE=y +CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y +CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y +CONFIG_RINGBUF_PLACE_ISR_FUNCTIONS_INTO_FLASH=y