2019-03-15 09:44:27 +00:00
|
|
|
if(BOOTLOADER_BUILD)
|
|
|
|
# For bootloader, all we need from esp_common is headers
|
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS include)
|
|
|
|
set(COMPONENT_REQUIRES ${IDF_COMPONENTS})
|
|
|
|
set(COMPONENT_SRCS )
|
|
|
|
register_component()
|
|
|
|
else()
|
|
|
|
# Regular app build
|
|
|
|
set(COMPONENT_SRCS
|
|
|
|
"src/dbg_stubs.c"
|
|
|
|
"src/esp_err_to_name.c"
|
|
|
|
"src/esp_timer.c"
|
|
|
|
"src/ets_timer_legacy.c"
|
|
|
|
"src/pm_locks.c"
|
|
|
|
"src/stack_check.c")
|
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
|
|
|
set(COMPONENT_PRIV_INCLUDEDIRS)
|
|
|
|
set(COMPONENT_REQUIRES)
|
2019-03-25 13:11:53 +00:00
|
|
|
|
2019-03-15 09:44:27 +00:00
|
|
|
register_component()
|
2019-03-21 04:21:01 +00:00
|
|
|
|
2019-03-15 09:44:27 +00:00
|
|
|
set_source_files_properties(
|
|
|
|
"src/stack_check.c"
|
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
-fno-stack-protector)
|
|
|
|
endif()
|