2017-03-21 23:07:37 -04:00
|
|
|
#
|
|
|
|
# Component Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
COMPONENT_SRCDIRS := .
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
ifdef CONFIG_APPTRACE_MEMBUFS_APPTRACE_PROTO_ENABLE
|
|
|
|
COMPONENT_SRCDIRS += port/xtensa
|
|
|
|
endif
|
|
|
|
|
2017-08-16 19:36:00 -04:00
|
|
|
COMPONENT_ADD_INCLUDEDIRS = include
|
2017-03-21 23:07:37 -04:00
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
COMPONENT_PRIV_INCLUDEDIRS = private_include \
|
|
|
|
port/include
|
|
|
|
|
2017-08-16 19:36:00 -04:00
|
|
|
COMPONENT_ADD_LDFLAGS = -lapp_trace
|
|
|
|
|
|
|
|
# do not produce gcov info for this module, it is used as transport for gcov
|
|
|
|
CFLAGS := $(subst --coverage,,$(CFLAGS))
|
2017-03-21 23:07:37 -04:00
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
ifdef CONFIG_APPTRACE_SV_ENABLE
|
2017-03-21 23:07:37 -04:00
|
|
|
|
|
|
|
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 \
|
2020-12-21 12:17:42 -05:00
|
|
|
sys_view/esp \
|
2018-12-12 12:35:17 -05:00
|
|
|
sys_view/ext
|
2017-08-16 19:36:00 -04:00
|
|
|
else
|
|
|
|
COMPONENT_SRCDIRS += gcov
|
2018-11-29 22:00:52 -05:00
|
|
|
endif
|
2018-04-17 22:57:45 -04:00
|
|
|
|
|
|
|
COMPONENT_ADD_LDFRAGMENTS += linker.lf
|