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()
|
|
|
|
|
2020-11-23 02:35:09 -05: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 03:24:04 -04:00
|
|
|
INCLUDE_DIRS include
|
2020-09-18 05:23:28 -04:00
|
|
|
REQUIRES ${requires}
|
2020-12-03 07:08:59 -05:00
|
|
|
PRIV_REQUIRES efuse
|
2020-09-25 03:23:52 -04:00
|
|
|
LDFRAGMENTS linker.lf)
|
|
|
|
|
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
add_subdirectory(port/${target})
|