From e4192f88e61b2ba55c7e327540a7c192eefc1377 Mon Sep 17 00:00:00 2001 From: morris Date: Tue, 25 Nov 2025 15:21:48 +0800 Subject: [PATCH] refactor(g0_components): update component list to dynamically include esp_hal_* components --- tools/test_apps/system/g0_components/CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/test_apps/system/g0_components/CMakeLists.txt b/tools/test_apps/system/g0_components/CMakeLists.txt index 7e5ef183373..fe3c8847f1b 100644 --- a/tools/test_apps/system/g0_components/CMakeLists.txt +++ b/tools/test_apps/system/g0_components/CMakeLists.txt @@ -17,8 +17,16 @@ endif() # Force this project to use only G0 components # also , i.e. xtensa or riscv, will be added below -# TODO: IDF-14079 remove esp_hal_i2s dependency when ADC hal is graduated from the common hal component -set(all_g0_components esp_rom soc hal esp_common main esp_hal_i2s) +set(all_g0_components esp_rom soc hal esp_common main) +# more esp_hal_* components +file(GLOB esp_hal_component_dirs "${idf_path}/components/esp_hal_*") +foreach(hal_dir ${esp_hal_component_dirs}) + if(IS_DIRECTORY ${hal_dir} AND EXISTS "${hal_dir}/CMakeLists.txt") + get_filename_component(hal_name ${hal_dir} NAME) + list(APPEND all_g0_components ${hal_name}) + endif() +endforeach() + set(COMPONENTS ${all_g0_components}) # By default, common components include some G1+ components. Override common components to only have G0 ones