[PATCH v3 24/30] tools: tracing: Append extra cflags

From: Leo Yan

Date: Sun Mar 08 2026 - 12:57:42 EST


Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to
the compiler.

Signed-off-by: Leo Yan <leo.yan@xxxxxxx>
---
tools/tracing/latency/Makefile | 1 +
1 file changed, 1 insertion(+)

diff --git a/tools/tracing/latency/Makefile b/tools/tracing/latency/Makefile
index 257a56b1899f23837de533353e9c2cebdb6035bd..1468640117dd540b2976cbcafb2371ab16e104e9 100644
--- a/tools/tracing/latency/Makefile
+++ b/tools/tracing/latency/Makefile
@@ -56,6 +56,7 @@ ifeq ($(config),1)
include Makefile.config
endif

+CFLAGS += $(EXTRA_CFLAGS)
CFLAGS += $(INCLUDES) $(LIB_INCLUDES)

export CFLAGS OUTPUT srctree

--
2.34.1