From aecfbcd72da856a29774681171357b70e22bf2de Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Tue, 20 Jan 2026 12:34:31 +0100 Subject: [PATCH] fix(soc/cmake): fix the usage of the uninitialized variable The `srcs` list variable is used without initialization when building for linux target. Initialize it explicitly. Signed-off-by: Frantisek Hrbata --- components/soc/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/soc/CMakeLists.txt b/components/soc/CMakeLists.txt index d809080315..45dad5251d 100644 --- a/components/soc/CMakeLists.txt +++ b/components/soc/CMakeLists.txt @@ -2,6 +2,8 @@ idf_build_get_property(target IDF_TARGET) set(target_folder "${target}") +set(srcs) + # On Linux the soc component is a simple wrapper, without much functionality if(NOT ${target} STREQUAL "linux") if(CONFIG_IDF_TARGET_ESP32H4 AND NOT CONFIG_ESP32H4_SELECTS_REV_MP) # TODO: ESP32H4 IDF-13835