8851ca272b
Add tmon and turbostat, fix musl.
20 lines
672 B
Diff
20 lines
672 B
Diff
--- tools/power/x86/turbostat/Makefile.orig
|
|
+++ tools/power/x86/turbostat/Makefile
|
|
@@ -8,13 +8,13 @@
|
|
endif
|
|
|
|
turbostat : turbostat.c
|
|
-CFLAGS += -Wall
|
|
-CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
|
|
-CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
|
|
+override CFLAGS += -Wall
|
|
+override CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
|
|
+override CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
|
|
|
|
%: %.c
|
|
@mkdir -p $(BUILD_OUTPUT)
|
|
- $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@
|
|
+ $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ $(LDFLAGS)
|
|
|
|
.PHONY : clean
|
|
clean :
|