[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231127212049.455008-1-schan@cloudflare.com>
Date: Mon, 27 Nov 2023 15:20:48 -0600
From: Stanley Chan <schan@...udflare.com>
To: linux-pm@...r.kernel.org
Cc: kernel-team <kernel-team@...udflare.com>,
Stanley Chan <schan@...udflare.com>,
Thomas Renninger <trenn@...e.com>,
Shuah Khan <shuah@...nel.org>, Jiri Olsa <jolsa@...nel.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH v2] tools cpupower bench: Override CFLAGS assignments
Allow user to specify outside CFLAGS values as make argument
Corrects an issue where CFLAGS is passed as a make argument for
cpupower, but bench's makefile does not inherit and append to them.
Fixes: dbc4ca339c8d ("tools cpupower: Override CFLAGS assignments")
Signed-off-by: Stanley Chan <schan@...udflare.com>
---
tools/power/cpupower/bench/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/power/cpupower/bench/Makefile b/tools/power/cpupower/bench/Makefile
index d9d9923af85c..a4b902f9e1c4 100644
--- a/tools/power/cpupower/bench/Makefile
+++ b/tools/power/cpupower/bench/Makefile
@@ -15,7 +15,7 @@ LIBS = -L../ -L$(OUTPUT) -lm -lcpupower
OBJS = $(OUTPUT)main.o $(OUTPUT)parse.o $(OUTPUT)system.o $(OUTPUT)benchmark.o
endif
-CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\"
+override CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\"
$(OUTPUT)%.o : %.c
$(ECHO) " CC " $@
--
2.34.1
Powered by blists - more mailing lists