2020-03-03 04:22:41 +00:00
|
|
|
idf_component_register(SRCS "panic.c" "system_api.c" "startup.c"
|
2020-02-02 15:23:16 +00:00
|
|
|
INCLUDE_DIRS include
|
|
|
|
PRIV_INCLUDE_DIRS private_include
|
2020-02-05 14:40:15 +00:00
|
|
|
PRIV_REQUIRES spi_flash app_update
|
2020-06-09 00:17:48 +00:00
|
|
|
# requirements due to startup code
|
|
|
|
nvs_flash pthread app_trace
|
2020-02-02 15:23:16 +00:00
|
|
|
LDFRAGMENTS "linker.lf")
|
|
|
|
|
|
|
|
add_subdirectory(port)
|
2020-03-03 04:22:41 +00:00
|
|
|
|
2020-06-10 13:13:31 +00:00
|
|
|
# After system initialization, `start_app` (and its other cores variant) is called.
|
|
|
|
# This is provided by the user or from another component. Since we can't establish
|
|
|
|
# dependency on what we don't know, force linker to not drop the symbol regardless
|
|
|
|
# of link line order.
|
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u start_app")
|
2020-02-13 12:43:23 +00:00
|
|
|
|
|
|
|
if (NOT CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE)
|
2020-06-10 13:13:31 +00:00
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u start_app_other_cores")
|
2020-02-13 12:43:23 +00:00
|
|
|
endif()
|