mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 02:54:32 +08:00
2da789cda4
Bring back the Python scripts that were initially added with TEST_GEN_FILES but now with TEST_FILES to avoid having them deleted when doing a clean. Also fix the way the architecture is being determined as they should also be installed when ARCH=x86_64 is provided explicitly. Then also append extra files to TEST_FILES and TEST_PROGS with += so they don't get discarded. Fixes:ba2d788aa8
("selftests: amd-pstate: Trigger tbench benchmark and test cpus") Fixes:a49fb7218e
("selftests: amd-pstate: Don't delete source files via Makefile") Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com> Acked-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
19 lines
544 B
Makefile
19 lines
544 B
Makefile
# 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:
|
|
|
|
ARCH ?= $(shell uname -m 2>/dev/null || echo not)
|
|
ARCH := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
|
|
|
|
ifeq (x86,$(ARCH))
|
|
TEST_FILES += ../../../power/x86/amd_pstate_tracer/amd_pstate_trace.py
|
|
TEST_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
|