[PATCH v7 21/23] tools: tracing: Append extra cflags
From: Leo Yan
Date: Tue Jun 02 2026 - 11:06:31 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 +
tools/tracing/rtla/Makefile | 1 +
2 files changed, 2 insertions(+)
diff --git a/tools/tracing/latency/Makefile b/tools/tracing/latency/Makefile
index 257a56b1899f23837de533353e9c2cebdb6035bd..d32a6a13753035355f0e3a05bf88870b8aa55f64 100644
--- a/tools/tracing/latency/Makefile
+++ b/tools/tracing/latency/Makefile
@@ -57,6 +57,7 @@ ifeq ($(config),1)
endif
CFLAGS += $(INCLUDES) $(LIB_INCLUDES)
+CFLAGS += $(EXTRA_CFLAGS)
export CFLAGS OUTPUT srctree
diff --git a/tools/tracing/rtla/Makefile b/tools/tracing/rtla/Makefile
index 45690ee14544dfb9648dbafe5132b8c46a44d3ea..c8df8cb9baa0ce8671d94977e82591cb63d18b67 100644
--- a/tools/tracing/rtla/Makefile
+++ b/tools/tracing/rtla/Makefile
@@ -67,6 +67,7 @@ ifeq ($(config),1)
endif
CFLAGS += $(INCLUDES) $(LIB_INCLUDES)
+CFLAGS += $(EXTRA_CFLAGS)
export CFLAGS OUTPUT srctree
--
2.34.1