mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-03 10:30:58 +02:00
change(soc): simplify p4 soc cmake
This commit is contained in:
@@ -20,15 +20,11 @@ endif()
|
|||||||
|
|
||||||
# register headers that generated by script from CSV
|
# register headers that generated by script from CSV
|
||||||
if(CONFIG_IDF_TARGET_ESP32P4)
|
if(CONFIG_IDF_TARGET_ESP32P4)
|
||||||
if(DEFINED COMPONENTS AND "esp_hw_support" IN_LIST COMPONENTS)
|
|
||||||
if(CONFIG_ESP32P4_SELECTS_REV_LESS_V2)
|
if(CONFIG_ESP32P4_SELECTS_REV_LESS_V2)
|
||||||
list(APPEND includes "${target_folder}/register/hw_ver1")
|
list(APPEND includes "${target_folder}/register/hw_ver1")
|
||||||
else()
|
else()
|
||||||
list(APPEND includes "${target_folder}/register/hw_ver2")
|
list(APPEND includes "${target_folder}/register/hw_ver2")
|
||||||
endif()
|
endif()
|
||||||
else()
|
|
||||||
list(APPEND includes "${target_folder}/register/hw_ver1")
|
|
||||||
endif()
|
|
||||||
else()
|
else()
|
||||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target_folder}/register")
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target_folder}/register")
|
||||||
list(APPEND includes "${target_folder}/register")
|
list(APPEND includes "${target_folder}/register")
|
||||||
|
Reference in New Issue
Block a user