selftests/intel_pstate: Fix build rule for x86
[muen/linux.git] / tools / testing / selftests / intel_pstate / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE
3 LDLIBS := $(LDLIBS) -lm
4
5 uname_M := $(shell uname -m 2>/dev/null || echo not)
6 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
7
8 ifeq (x86,$(ARCH))
9 TEST_GEN_FILES := msr aperf
10 endif
11
12 TEST_PROGS := run.sh
13
14 include ../lib.mk
15
16 $(TEST_GEN_FILES): $(HEADERS)