fix(ulp): clarify buildv2 child marker

Rename the internal ULP child-build marker to __ULP_BUILDV2 so component CMake files make the build-system scope explicit.

Document that the marker is currently set only by the IDF_BUILD_V2 ULP child path.
This commit is contained in:
Renz Bagaporo
2026-07-29 13:08:23 +09:00
parent 83cdcc1da3
commit 1f5cba3070
26 changed files with 61 additions and 59 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
idf_build_get_property(target IDF_TARGET)
# TODO(IDF-15945): potentially remove __ULP_BUILD handling from esp_common
if(${target} STREQUAL "linux" OR __ULP_BUILD)
# TODO(IDF-15945): potentially remove __ULP_BUILDV2 handling from esp_common
if(${target} STREQUAL "linux" OR __ULP_BUILDV2)
# ULP sources include esp_err.h from components/ulp public and shared headers.
set(ldfragments)
else()
@@ -10,7 +10,7 @@ endif()
set(srcs)
if(NOT __ULP_BUILD)
if(NOT __ULP_BUILDV2)
set(srcs "src/esp_err_to_name.c")
endif()