mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
ipc: prevent code getting pulled in for unicore configuration
This commit is contained in:
@@ -4,14 +4,20 @@ if(BOOTLOADER_BUILD)
|
||||
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-Wl,--gc-sections")
|
||||
else()
|
||||
# Regular app build
|
||||
idf_component_register(SRCS "src/dbg_stubs.c"
|
||||
"src/esp_err_to_name.c"
|
||||
"src/esp_timer.c"
|
||||
"src/ets_timer_legacy.c"
|
||||
"src/freertos_hooks.c"
|
||||
"src/ipc.c"
|
||||
"src/pm_locks.c"
|
||||
"src/stack_check.c"
|
||||
set(srcs "src/dbg_stubs.c"
|
||||
"src/esp_err_to_name.c"
|
||||
"src/esp_timer.c"
|
||||
"src/ets_timer_legacy.c"
|
||||
"src/freertos_hooks.c"
|
||||
"src/pm_locks.c"
|
||||
"src/stack_check.c")
|
||||
|
||||
# IPC framework is not applicable if freertos unicore config is selected
|
||||
if(NOT CONFIG_FREERTOS_UNICORE)
|
||||
list(APPEND srcs "src/ipc.c")
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS include
|
||||
PRIV_REQUIRES soc)
|
||||
|
||||
|
||||
@@ -5,5 +5,10 @@
|
||||
COMPONENT_ADD_INCLUDEDIRS := include
|
||||
COMPONENT_SRCDIRS := src
|
||||
|
||||
# IPC framework is not applicable if freertos unicore config is selected
|
||||
ifdef CONFIG_FREERTOS_UNICORE
|
||||
COMPONENT_OBJEXCLUDE := src/ipc.o
|
||||
endif
|
||||
|
||||
# disable stack protection in files which are involved in initialization of that feature
|
||||
src/stack_check.o: CFLAGS := $(filter-out -fstack-protector%, $(CFLAGS))
|
||||
|
||||
Reference in New Issue
Block a user