Add separate compile option for tracing functionality in Posix demo (#1194)

* Add compile option for enabling tracing in cmake file *
This commit is contained in:
Rahul Kar 2024-03-21 14:57:49 +05:30 committed by GitHub
parent 000c005cee
commit 7de1b5098d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 36 additions and 24 deletions

View file

@ -75,8 +75,14 @@ endif
ifeq ($(COVERAGE_TEST),1)
CPPFLAGS += -DprojCOVERAGE_TEST=1
CPPFLAGS += -DprojENABLE_TRACING=0
CFLAGS += -Werror
else
ifeq ($(NO_TRACING),1)
CPPFLAGS += -DprojENABLE_TRACING=0
else
CPPFLAGS += -DprojENABLE_TRACING=1
endif
CPPFLAGS += -DprojCOVERAGE_TEST=0
# Trace library.
SOURCE_FILES += ${FREERTOS_PLUS_DIR}/Source/FreeRTOS-Plus-Trace/kernelports/FreeRTOS/trcKernelPort.c