2020-03-02 23:22:41 -05:00
|
|
|
idf_component_register(SRCS "panic.c" "system_api.c" "startup.c"
|
2020-02-02 10:23:16 -05:00
|
|
|
INCLUDE_DIRS include
|
|
|
|
PRIV_INCLUDE_DIRS private_include
|
2020-02-05 09:40:15 -05:00
|
|
|
PRIV_REQUIRES spi_flash app_update
|
2020-06-08 20:17:48 -04:00
|
|
|
# requirements due to startup code
|
|
|
|
nvs_flash pthread app_trace
|
2020-02-02 10:23:16 -05:00
|
|
|
LDFRAGMENTS "linker.lf")
|
|
|
|
|
|
|
|
add_subdirectory(port)
|
2020-03-02 23:22:41 -05:00
|
|
|
|
2020-06-10 09:13:31 -04: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 07:43:23 -05:00
|
|
|
|
|
|
|
if (NOT CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE)
|
2020-06-10 09:13:31 -04:00
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u start_app_other_cores")
|
2020-02-13 07:43:23 -05:00
|
|
|
endif()
|