Skip to content

Commit 2a8e366

Browse files
Ricardo Cañueloshuahkh
authored andcommitted
selftests/kexec: 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 <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent beb7d86 commit 2a8e366

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/testing/selftests/kexec/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
# Makefile for kexec tests
33

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

7-
ifeq ($(ARCH),$(filter $(ARCH),x86 ppc64le))
7+
ifeq ($(ARCH_PROCESSED),$(filter $(ARCH_PROCESSED),x86 ppc64le))
88
TEST_PROGS := test_kexec_load.sh test_kexec_file_load.sh
99
TEST_FILES := kexec_common_lib.sh
1010

0 commit comments

Comments
 (0)