change(g0): use hw_ver1 to build g0 components test app

This commit is contained in:
armando
2025-07-14 14:45:48 +08:00
committed by Armando (Dou Yiwen)
parent df7cd41765
commit 9477f88a0d

View File

@@ -20,11 +20,15 @@ endif()
# register headers that generated by script from CSV
if(CONFIG_IDF_TARGET_ESP32P4)
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_ver1")
endif()
else()
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target_folder}/register")
list(APPEND includes "${target_folder}/register")