From 9477f88a0d1450a5ff6b7e1d832e14b699077a16 Mon Sep 17 00:00:00 2001 From: armando Date: Mon, 14 Jul 2025 14:45:48 +0800 Subject: [PATCH] change(g0): use hw_ver1 to build g0 components test app --- components/soc/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/components/soc/CMakeLists.txt b/components/soc/CMakeLists.txt index 21ee851006..2814539972 100644 --- a/components/soc/CMakeLists.txt +++ b/components/soc/CMakeLists.txt @@ -20,10 +20,14 @@ endif() # register headers that generated by script from CSV if(CONFIG_IDF_TARGET_ESP32P4) - if(CONFIG_ESP32P4_SELECTS_REV_LESS_V2) - list(APPEND includes "${target_folder}/register/hw_ver1") + if(DEFINED COMPONENTS AND "esp_hw_support" IN_LIST COMPONENTS) + if(CONFIG_ESP32P4_SELECTS_REV_LESS_V2) + list(APPEND includes "${target_folder}/register/hw_ver1") + else() + list(APPEND includes "${target_folder}/register/hw_ver2") + endif() else() - list(APPEND includes "${target_folder}/register/hw_ver2") + list(APPEND includes "${target_folder}/register/hw_ver1") endif() else() if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target_folder}/register")