mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 10:40:47 +03:00
Route ulp_embed_binary() through a built-in CMake v2 default ULP project instead of generating a compatibility project with a synthetic main component. Attach legacy ULP sources directly to the ULP executable, pass the parent component include view through the existing ULP_S_SOURCES/COMPONENT_* channel, and remove the generated legacy project templates plus the component path ownership validation bypass they required. Update the build-system coverage to assert that the builtin child project builds and rebuilds when parent-owned ULP sources change.
17 lines
416 B
CMake
17 lines
416 B
CMake
cmake_minimum_required(VERSION 3.22)
|
|
|
|
if(IDF_BUILD_V2)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/CMakeLists_v2.txt)
|
|
return()
|
|
endif()
|
|
|
|
include(${IDF_PATH}/tools/cmake/idf.cmake)
|
|
project(${ULP_APP_NAME})
|
|
add_executable(${ULP_APP_NAME})
|
|
|
|
include(IDFULPProject)
|
|
|
|
ulp_apply_default_options(${ULP_APP_NAME})
|
|
ulp_apply_default_sources(${ULP_APP_NAME})
|
|
ulp_add_build_binary_targets(${ULP_APP_NAME} PREFIX ${ULP_VAR_PREFIX})
|