2017-03-21 23:07:37 -04:00
|
|
|
#
|
|
|
|
# Component Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
COMPONENT_SRCDIRS := .
|
|
|
|
|
2017-08-16 19:36:00 -04:00
|
|
|
COMPONENT_ADD_INCLUDEDIRS = include
|
2017-03-21 23:07:37 -04:00
|
|
|
|
2017-08-16 19:36:00 -04:00
|
|
|
COMPONENT_ADD_LDFLAGS = -lapp_trace
|
|
|
|
|
2017-03-21 23:07:37 -04:00
|
|
|
ifdef CONFIG_SYSVIEW_ENABLE
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS += \
|
|
|
|
sys_view/Config \
|
|
|
|
sys_view/SEGGER \
|
|
|
|
sys_view/Sample/OS
|
|
|
|
|
|
|
|
COMPONENT_SRCDIRS += \
|
2017-08-16 19:36:00 -04:00
|
|
|
gcov \
|
2017-03-21 23:07:37 -04:00
|
|
|
sys_view/SEGGER \
|
|
|
|
sys_view/Sample/OS \
|
|
|
|
sys_view/Sample/Config \
|
2018-12-12 12:35:17 -05:00
|
|
|
sys_view/esp32 \
|
|
|
|
sys_view/ext
|
2017-08-16 19:36:00 -04:00
|
|
|
else
|
2021-03-19 17:37:15 -04:00
|
|
|
ifdef CONFIG_APPTRACE_GCOV_ENABLE
|
|
|
|
# do not produce gcov info for this module, it is used as transport for gcov
|
|
|
|
CFLAGS := $(subst --coverage,,$(CFLAGS))
|
|
|
|
COMPONENT_ADD_LDFLAGS += -Wl,--undefined=gcov_rtio_atexit
|
2017-08-16 19:36:00 -04:00
|
|
|
COMPONENT_SRCDIRS += gcov
|
2018-11-29 22:00:52 -05:00
|
|
|
endif
|
2021-03-19 17:37:15 -04:00
|
|
|
endif
|
2018-04-17 22:57:45 -04:00
|
|
|
|
|
|
|
COMPONENT_ADD_LDFRAGMENTS += linker.lf
|