2018-10-18 23:51:51 -04:00
|
|
|
set(SOC_NAME ${IDF_TARGET})
|
2018-01-11 21:49:13 -05:00
|
|
|
|
2018-10-18 23:51:51 -04:00
|
|
|
if(EXISTS "${COMPONENT_PATH}/${SOC_NAME}")
|
|
|
|
include(${COMPONENT_PATH}/${SOC_NAME}/sources.cmake)
|
2018-01-11 21:49:13 -05:00
|
|
|
|
2018-10-18 23:51:51 -04:00
|
|
|
spaces2list(SOC_SRCS)
|
|
|
|
add_prefix(COMPONENT_SRCS "${SOC_NAME}/" ${SOC_SRCS})
|
2021-05-25 05:16:43 -04:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS ${SOC_NAME}/include ${SOC_NAME}/)
|
2018-10-18 23:51:51 -04:00
|
|
|
endif()
|
2018-03-22 02:27:10 -04:00
|
|
|
|
2018-10-18 23:51:51 -04:00
|
|
|
list(APPEND COMPONENT_ADD_INCLUDEDIRS include)
|
|
|
|
list(APPEND COMPONENT_SRCS "src/memory_layout_utils.c")
|
2018-03-22 02:27:10 -04:00
|
|
|
|
2021-05-25 05:16:43 -04:00
|
|
|
if (NOT(BOOTLOADER_BUILD))
|
|
|
|
list(APPEND COMPONENT_SRCS "src/regi2c_ctrl.c")
|
|
|
|
endif()
|
|
|
|
|
2018-04-17 22:57:45 -04:00
|
|
|
set(COMPONENT_ADD_LDFRAGMENTS linker.lf)
|
|
|
|
|
2018-09-10 21:44:12 -04:00
|
|
|
set(COMPONENT_REQUIRES)
|
2018-04-17 22:57:45 -04:00
|
|
|
|
2018-10-18 23:51:51 -04:00
|
|
|
register_component()
|