mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ee2f8b1a62
Jump tables placed in flash would cause issue with code that needed to be ran from IRAM. These optimizations are now always disabled.
32 lines
931 B
CMake
32 lines
931 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
|
|
set(requires soc)
|
|
if(${target} STREQUAL "esp32")
|
|
list(APPEND requires efuse)
|
|
endif()
|
|
|
|
set(priv_requires efuse)
|
|
|
|
set(srcs "compare_set.c" "cpu_util.c")
|
|
if(NOT BOOTLOADER_BUILD)
|
|
list(APPEND srcs "esp_async_memcpy.c"
|
|
"esp_clk.c"
|
|
"clk_ctrl_os.c"
|
|
"hw_random.c"
|
|
"intr_alloc.c"
|
|
"mac_addr.c"
|
|
"sleep_modes.c"
|
|
"regi2c_ctrl.c")
|
|
list(APPEND priv_requires esp_ipc)
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS include include/soc
|
|
PRIV_INCLUDE_DIRS port/include
|
|
REQUIRES ${requires}
|
|
PRIV_REQUIRES ${priv_requires}
|
|
LDFRAGMENTS linker.lf)
|
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
add_subdirectory(port/${target})
|