mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
Merge branch 'feat/cmakev2_ulp_full_subproject' into 'master'
feat(ulp): initial support for building ULP projects as full subprojects under CMake v2 See merge request espressif/esp-idf!50134
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
idf_build_get_property(target IDF_TARGET)
|
||||
|
||||
if(${target} STREQUAL "linux")
|
||||
# TODO(IDF-15945): potentially remove __ULP_BUILD handling from esp_common
|
||||
if(${target} STREQUAL "linux" OR __ULP_BUILD)
|
||||
# ULP sources include esp_err.h from components/ulp public and shared headers.
|
||||
set(ldfragments)
|
||||
else()
|
||||
set(ldfragments common.lf soc.lf linker.lf)
|
||||
endif()
|
||||
|
||||
set(srcs "src/esp_err_to_name.c")
|
||||
set(srcs)
|
||||
|
||||
if(NOT __ULP_BUILD)
|
||||
set(srcs "src/esp_err_to_name.c")
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS include
|
||||
|
||||
Reference in New Issue
Block a user