Skip to content

Commit 498b473

Browse files
phongttorvalds
authored andcommitted
tools: selftests: fix build issue with make kselftests target
Fix the typo of ARCH when running 'make kselftests'. Change the 'X86' to 'x86'. Test by compilation. Signed-off-by: Phong Tran <[email protected]> Cc: David Herrmann <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Sam Ravnborg <[email protected]> Cc: Michal Marek <[email protected]> Cc: Shuah Khan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 8c7b638 commit 498b473

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

tools/testing/selftests/ipc/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
uname_M := $(shell uname -m 2>/dev/null || echo not)
22
ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/)
33
ifeq ($(ARCH),i386)
4-
ARCH := X86
4+
ARCH := x86
55
CFLAGS := -DCONFIG_X86_32 -D__i386__
66
endif
77
ifeq ($(ARCH),x86_64)
8-
ARCH := X86
8+
ARCH := x86
99
CFLAGS := -DCONFIG_X86_64 -D__x86_64__
1010
endif
1111

1212
CFLAGS += -I../../../../usr/include/
1313

1414
all:
15-
ifeq ($(ARCH),X86)
15+
ifeq ($(ARCH),x86)
1616
gcc $(CFLAGS) msgque.c -o msgque_test
1717
else
1818
echo "Not an x86 target, can't build msgque selftest"

tools/testing/selftests/kcmp/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
uname_M := $(shell uname -m 2>/dev/null || echo not)
22
ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/)
33
ifeq ($(ARCH),i386)
4-
ARCH := X86
4+
ARCH := x86
55
CFLAGS := -DCONFIG_X86_32 -D__i386__
66
endif
77
ifeq ($(ARCH),x86_64)
8-
ARCH := X86
8+
ARCH := x86
99
CFLAGS := -DCONFIG_X86_64 -D__x86_64__
1010
endif
1111

@@ -15,7 +15,7 @@ CFLAGS += -I../../../../usr/include/
1515
CFLAGS += -I../../../../arch/x86/include/
1616

1717
all:
18-
ifeq ($(ARCH),X86)
18+
ifeq ($(ARCH),x86)
1919
gcc $(CFLAGS) kcmp_test.c -o kcmp_test
2020
else
2121
echo "Not an x86 target, can't build kcmp selftest"

tools/testing/selftests/memfd/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
uname_M := $(shell uname -m 2>/dev/null || echo not)
22
ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/)
33
ifeq ($(ARCH),i386)
4-
ARCH := X86
4+
ARCH := x86
55
endif
66
ifeq ($(ARCH),x86_64)
7-
ARCH := X86
7+
ARCH := x86
88
endif
99

1010
CFLAGS += -D_FILE_OFFSET_BITS=64
@@ -14,20 +14,20 @@ CFLAGS += -I../../../../include/uapi/
1414
CFLAGS += -I../../../../include/
1515

1616
all:
17-
ifeq ($(ARCH),X86)
17+
ifeq ($(ARCH),x86)
1818
gcc $(CFLAGS) memfd_test.c -o memfd_test
1919
else
2020
echo "Not an x86 target, can't build memfd selftest"
2121
endif
2222

2323
run_tests: all
24-
ifeq ($(ARCH),X86)
24+
ifeq ($(ARCH),x86)
2525
gcc $(CFLAGS) memfd_test.c -o memfd_test
2626
endif
2727
@./memfd_test || echo "memfd_test: [FAIL]"
2828

2929
build_fuse:
30-
ifeq ($(ARCH),X86)
30+
ifeq ($(ARCH),x86)
3131
gcc $(CFLAGS) fuse_mnt.c `pkg-config fuse --cflags --libs` -o fuse_mnt
3232
gcc $(CFLAGS) fuse_test.c -o fuse_test
3333
else

0 commit comments

Comments
 (0)