mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
173e001680
When not compiling bootloader, a spinlock will be used for reading or writing I2C internal devices/registers. When compiling for bootloader, no need to use any lock.
22 lines
571 B
CMake
22 lines
571 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
|
|
set(requires soc)
|
|
if(${target} STREQUAL "esp32")
|
|
list(APPEND requires efuse)
|
|
endif()
|
|
|
|
set(srcs "compare_set.c" "cpu_util.c")
|
|
if(NOT BOOTLOADER_BUILD)
|
|
list(APPEND srcs "clk_ctrl_os.c"
|
|
"regi2c_ctrl.c")
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS include
|
|
REQUIRES ${requires}
|
|
PRIV_REQUIRES efuse
|
|
LDFRAGMENTS linker.lf)
|
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
add_subdirectory(port/${target})
|