2020-01-07 23:50:03 -05:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2018-01-11 21:49:13 -05:00
|
|
|
|
2020-01-18 21:02:21 -05:00
|
|
|
idf_component_register(SRCS "src/cpu_util.c"
|
|
|
|
"src/memory_layout_utils.c"
|
2020-01-07 23:50:03 -05:00
|
|
|
"src/lldesc.c"
|
|
|
|
"src/soc_include_legacy_warn.c"
|
|
|
|
"src/compare_set.c"
|
2020-08-08 08:15:27 -04:00
|
|
|
REQUIRES hal #cpu.h directly includes HAL header
|
2020-01-07 23:50:03 -05:00
|
|
|
PRIV_REQUIRES ${target}
|
|
|
|
LDFRAGMENTS linker.lf)
|
2018-03-22 02:27:10 -04:00
|
|
|
|
2019-11-27 20:20:00 -05:00
|
|
|
|
2020-04-29 04:20:40 -04:00
|
|
|
# Since there can be chip-specific HAL headers which can include the common
|
|
|
|
# HAL header via include_next, process the build scripts here first so that
|
2020-01-09 01:43:41 -05:00
|
|
|
# include directories appear first in the compile command.
|
|
|
|
add_subdirectory(src/${target})
|
|
|
|
target_include_directories(${COMPONENT_LIB} PUBLIC include)
|
2020-08-08 08:15:27 -04:00
|
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE idf::hal)
|
2020-01-09 01:43:41 -05:00
|
|
|
|
2020-01-07 23:50:03 -05:00
|
|
|
add_subdirectory(soc)
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC "soc_${target}")
|