esp-idf/components/soc/CMakeLists.txt
Li Hang Fan 61f79cbf9c Merge branch 'refactor/move_ldscript_to_soc' into 'master'
refactor/soc: Move peripheral linker scripts out of target component

Closes IDF-3580

See merge request espressif/esp-idf!14474
2021-07-23 11:54:56 +00:00

10 lines
348 B
CMake

idf_component_register(SRCS "lldesc.c"
"soc_include_legacy_warn.c"
INCLUDE_DIRS include
LDFRAGMENTS "linker.lf")
idf_build_get_property(target IDF_TARGET)
add_subdirectory(${target})
target_linker_script(${COMPONENT_LIB} INTERFACE "${target}/ld/${target}.peripherals.ld")