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 <frantisek.hrbata@espressif.com>
This commit is contained in:
Frantisek Hrbata
2026-01-20 12:34:31 +01:00
parent 4d5645e54a
commit aecfbcd72d
+2
View File
@@ -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