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
+4 -3
View File
@@ -1,4 +1,4 @@
if(IDF_BUILD_V2 AND __ULP_BUILD)
if(IDF_BUILD_V2 AND __ULP_BUILDV2)
return()
endif()
@@ -134,8 +134,9 @@ function(__setup_ulp_project app_name project_path prefix prefix_append_bin_name
-DULP_APP_NAME=${app_name}
-DIDF_BUILD_V2=y
-DCMAKE_MODULE_PATH=${ulp_cmake_dir}
# Internal marker for the ULP child project component graph.
-D__ULP_BUILD=1
# Internal marker for ULP child component graphs. Only the
# IDF_BUILD_V2 path sets it for now.
-D__ULP_BUILDV2=1
-DIDF_PARENT_BUILD_DIR=${build_dir}
-DULP_PREFIX_APPEND_BIN_NAME=${prefix_append_bin_name}
-DULP_PARENT_SDKCONFIG_HEADER=${SDKCONFIG_HEADER}