2020-09-18 09:23:28 +00:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
set(requires soc)
|
|
|
|
if(${target} STREQUAL "esp32")
|
|
|
|
list(APPEND requires efuse)
|
|
|
|
endif()
|
|
|
|
|
2020-11-23 07:35:09 +00:00
|
|
|
set(srcs "compare_set.c" "cpu_util.c")
|
|
|
|
if(NOT BOOTLOADER_BUILD)
|
|
|
|
list(APPEND srcs "clk_ctrl_os.c")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(SRCS ${srcs}
|
2020-09-30 07:24:04 +00:00
|
|
|
INCLUDE_DIRS include
|
2020-09-18 09:23:28 +00:00
|
|
|
REQUIRES ${requires}
|
2020-12-03 12:08:59 +00:00
|
|
|
PRIV_REQUIRES efuse
|
2020-09-25 07:23:52 +00:00
|
|
|
LDFRAGMENTS linker.lf)
|
|
|
|
|
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
add_subdirectory(port/${target})
|