2020-09-18 05:23:28 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
set(requires soc)
|
|
|
|
if(${target} STREQUAL "esp32")
|
|
|
|
list(APPEND requires efuse)
|
|
|
|
endif()
|
|
|
|
|
2021-03-10 08:39:29 -05:00
|
|
|
set(priv_requires efuse)
|
|
|
|
|
2020-11-23 02:35:09 -05:00
|
|
|
set(srcs "compare_set.c" "cpu_util.c")
|
|
|
|
if(NOT BOOTLOADER_BUILD)
|
2021-03-10 08:39:29 -05:00
|
|
|
list(APPEND srcs "esp_async_memcpy.c"
|
|
|
|
"esp_clk.c"
|
|
|
|
"clk_ctrl_os.c"
|
|
|
|
"hw_random.c"
|
|
|
|
"intr_alloc.c"
|
2021-03-10 08:55:49 -05:00
|
|
|
"mac_addr.c"
|
2021-03-30 02:50:27 -04:00
|
|
|
"sleep_modes.c"
|
|
|
|
"regi2c_ctrl.c")
|
2021-03-10 08:39:29 -05:00
|
|
|
list(APPEND priv_requires esp_ipc)
|
2021-02-18 08:09:27 -05:00
|
|
|
endif()
|
|
|
|
|
2020-11-23 02:35:09 -05:00
|
|
|
idf_component_register(SRCS ${srcs}
|
2021-01-29 01:40:59 -05:00
|
|
|
INCLUDE_DIRS include include/soc
|
2021-03-10 08:32:47 -05:00
|
|
|
PRIV_INCLUDE_DIRS port/include
|
2020-09-18 05:23:28 -04:00
|
|
|
REQUIRES ${requires}
|
2021-03-10 08:39:29 -05:00
|
|
|
PRIV_REQUIRES ${priv_requires}
|
2020-09-25 03:23:52 -04:00
|
|
|
LDFRAGMENTS linker.lf)
|
|
|
|
|
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
add_subdirectory(port/${target})
|