summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/amd-pstate/Makefile
blob: 5f195ee756d672040a0e3dab629a25dea6e9b80b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SPDX-License-Identifier: GPL-2.0-only
# Makefile for amd-pstate/ function selftests

# No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
all:

uname_M := $(shell uname -m 2>/dev/null || echo not)
ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)

ifeq (x86,$(ARCH))
TEST_GEN_FILES += ../../../power/x86/amd_pstate_tracer/amd_pstate_trace.py
TEST_GEN_FILES += ../../../power/x86/intel_pstate_tracer/intel_pstate_tracer.py
endif

TEST_PROGS := run.sh
TEST_FILES := basic.sh tbench.sh gitsource.sh

include ../lib.mk