2022-12-02 01:54:27 -05:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
# On Linux the soc component is a simple wrapper, without much functionality
|
|
|
|
if(NOT ${target} STREQUAL "linux")
|
|
|
|
set(srcs "lldesc.c"
|
|
|
|
"dport_access_common.c")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(SRCS ${srcs}
|
2020-09-17 08:05:23 -04:00
|
|
|
INCLUDE_DIRS include
|
2021-03-10 06:33:24 -05:00
|
|
|
LDFRAGMENTS "linker.lf")
|
2018-03-22 02:27:10 -04:00
|
|
|
|
2020-09-25 03:23:52 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
add_subdirectory(${target})
|
2021-07-21 09:09:45 -04:00
|
|
|
|
2022-12-02 01:54:27 -05:00
|
|
|
if(NOT CONFIG_IDF_TARGET_LINUX)
|
|
|
|
target_linker_script(${COMPONENT_LIB} INTERFACE "${target}/ld/${target}.peripherals.ld")
|
|
|
|
endif()
|