aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2017-01-12 00:16:06 +0900
committerShuah Khan <shuahkh@osg.samsung.com>2017-01-19 10:30:40 -0700
commit29fa1d436e96954ebcdac0beecb2e0d96c26350d (patch)
tree4f153bba3dd7223a8a0eeb87389d306d60311cdf /tools/testing
parentselftests/intel_pstate: Fix warning on loop index overflow (diff)
downloadwireguard-linux-29fa1d436e96954ebcdac0beecb2e0d96c26350d.tar.xz
wireguard-linux-29fa1d436e96954ebcdac0beecb2e0d96c26350d.zip
selftests/intel_pstate: Update makefile to match new style
Recent changes from Bamvor (88baa78d1f318) have standardized the variable names like TEST_GEN_FILES and removed the need for make targets all and clean. These changes bring the intel_pstate test inline with those changes. Cc: Prarit Bhargava <prarit@redhat.com> Signed-off-by: Stafford Horne <shorne@gmail.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/intel_pstate/Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/tools/testing/selftests/intel_pstate/Makefile b/tools/testing/selftests/intel_pstate/Makefile
index f5f1a28715ff..19678e90efb2 100644
--- a/tools/testing/selftests/intel_pstate/Makefile
+++ b/tools/testing/selftests/intel_pstate/Makefile
@@ -1,15 +1,10 @@
-CC := $(CROSS_COMPILE)gcc
CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE
LDFLAGS := $(LDFLAGS) -lm
-TARGETS := msr aperf
+TEST_GEN_FILES := msr aperf
-TEST_PROGS := $(TARGETS) run.sh
+TEST_PROGS := run.sh
-.PHONY: all clean
-all: $(TARGETS)
+include ../lib.mk
-$(TARGETS): $(HEADERS)
-
-clean:
- rm -f $(TARGETS)
+$(TEST_GEN_FILES): $(HEADERS)