mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-28 16:46:31 +03:00
fix(components): initialize srcs variable to prevent scope leakage
This commit is contained in:
@@ -4,8 +4,9 @@ if(${target} STREQUAL "linux")
|
||||
return() # This component is not supported by the POSIX/Linux simulator
|
||||
endif()
|
||||
|
||||
set(srcs)
|
||||
if(CONFIG_ESP_TRACE_TRANSPORT_APPTRACE)
|
||||
set(srcs
|
||||
list(APPEND srcs
|
||||
"app_trace.c"
|
||||
"app_trace_util.c"
|
||||
"host_file_io.c"
|
||||
|
||||
@@ -19,6 +19,7 @@ elseif(esp_tee_build)
|
||||
# TEE build currently only uses the shared headers.
|
||||
idf_component_register(INCLUDE_DIRS include)
|
||||
else()
|
||||
set(srcs)
|
||||
if(CONFIG_SECURE_ENABLE_TEE)
|
||||
if(NOT CMAKE_BUILD_EARLY_EXPANSION)
|
||||
# Add custom flash target for TEE binary
|
||||
|
||||
@@ -4,8 +4,9 @@ if(${target} STREQUAL "linux")
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(srcs)
|
||||
if(CONFIG_ESP_TRACE_ENABLE)
|
||||
set(srcs
|
||||
list(APPEND srcs
|
||||
"src/core/esp_trace_core.c"
|
||||
"src/core/esp_trace_registry.c"
|
||||
"src/ports/port_utils.c"
|
||||
|
||||
@@ -6,6 +6,8 @@ set(original_srcs "spiffs/src/spiffs_cache.c"
|
||||
"spiffs/src/spiffs_hydrogen.c"
|
||||
"spiffs/src/spiffs_nucleus.c")
|
||||
|
||||
set(srcs)
|
||||
set(pr)
|
||||
list(APPEND srcs "spiffs_api.c" ${original_srcs})
|
||||
|
||||
if(NOT ${target} STREQUAL "linux")
|
||||
|
||||
Reference in New Issue
Block a user