Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/intel_pstate: fix build for ARCH=x86_64

Handle the scenario where the build is launched with the ARCH envvar
defined as x86_64.

Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Ricardo Cañuelo and committed by
Shuah Khan
beb7d862 03cab65a

+3 -3
+3 -3
tools/testing/selftests/intel_pstate/Makefile
··· 2 2 CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE 3 3 LDLIBS += -lm 4 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/) 5 + ARCH ?= $(shell uname -m 2>/dev/null || echo not) 6 + ARCH_PROCESSED := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/) 7 7 8 - ifeq (x86,$(ARCH)) 8 + ifeq (x86,$(ARCH_PROCESSED)) 9 9 TEST_GEN_FILES := msr aperf 10 10 endif 11 11