Skip to content

Commit 0086ffe

Browse files
happy-dudeshuahkh
authored andcommitted
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. Signed-off-by: Stanley Chan <schan@cloudflare.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 6613476 commit 0086ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/power/cpupower/bench/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LIBS = -L../ -L$(OUTPUT) -lm -lcpupower
1515
OBJS = $(OUTPUT)main.o $(OUTPUT)parse.o $(OUTPUT)system.o $(OUTPUT)benchmark.o
1616
endif
1717

18-
CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\"
18+
override CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\"
1919

2020
$(OUTPUT)%.o : %.c
2121
$(ECHO) " CC " $@

0 commit comments

Comments
 (0)