From 987c901fa5d914b1b29c569fc0c7ebc31bbdc014 Mon Sep 17 00:00:00 2001 From: armando Date: Mon, 11 Aug 2025 15:36:15 +0800 Subject: [PATCH] change(soc): simplify p4 soc cmake --- components/soc/CMakeLists.txt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/components/soc/CMakeLists.txt b/components/soc/CMakeLists.txt index 2814539972..21ee851006 100644 --- a/components/soc/CMakeLists.txt +++ b/components/soc/CMakeLists.txt @@ -20,14 +20,10 @@ 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() + 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() if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target_folder}/register")