mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-06 11:19:56 +00:00
6842d98de7
Pull powertool update from Len Brown: "This updates the tree w/ the latest version of turbostat, which reports temperature and - on SNB and later - Watts." Fix up semantic merge conflict as per Len. * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: tools: Allow tools to be installed in a user specified location tools/power: turbostat: make Makefile a bit more capable tools/power x86_energy_perf_policy: close /proc/stat in for_every_cpu() tools/power turbostat: v3.0: monitor Watts and Temperature tools/power turbostat: fix output buffering issue tools/power turbostat: prevent infinite loop on migration error path x86 power: define RAPL MSRs tools/power/x86/turbostat: share kernel MSR #defines
23 lines
531 B
Makefile
23 lines
531 B
Makefile
CC = $(CROSS_COMPILE)gcc
|
|
BUILD_OUTPUT := $(PWD)
|
|
PREFIX := /usr
|
|
DESTDIR :=
|
|
|
|
turbostat : turbostat.c
|
|
CFLAGS += -Wall
|
|
CFLAGS += -I../../../../arch/x86/include/uapi/
|
|
|
|
%: %.c
|
|
@mkdir -p $(BUILD_OUTPUT)
|
|
$(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@
|
|
|
|
.PHONY : clean
|
|
clean :
|
|
@rm -f $(BUILD_OUTPUT)/turbostat
|
|
|
|
install : turbostat
|
|
install -d $(DESTDIR)$(PREFIX)/bin
|
|
install $(BUILD_OUTPUT)/turbostat $(DESTDIR)$(PREFIX)/bin/turbostat
|
|
install -d $(DESTDIR)$(PREFIX)/share/man/man8
|
|
install turbostat.8 $(DESTDIR)$(PREFIX)/share/man/man8
|