Skip to content

Commit 3d1e67c

Browse files
committed
selftests/nolibc: rename s390 to s390x
Support for 32-bit s390 is about to be added. As "s39032" would look horrible, use the another naming scheme. 32-bit s390 is "s390" and 64-bit s390 is "s390x", similar to how it is handled in various toolchain components. Acked-by: Willy Tarreau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Thomas Weißschuh <[email protected]>
1 parent 00ddf4c commit 3d1e67c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

tools/testing/selftests/nolibc/Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ ARCH_mips32le = mips
5454
ARCH_mips32be = mips
5555
ARCH_riscv32 = riscv
5656
ARCH_riscv64 = riscv
57+
ARCH_s390x = s390
5758
ARCH := $(or $(ARCH_$(XARCH)),$(XARCH))
5859

5960
# kernel image names by architecture
@@ -70,7 +71,7 @@ IMAGE_ppc64le = arch/powerpc/boot/zImage
7071
IMAGE_riscv = arch/riscv/boot/Image
7172
IMAGE_riscv32 = arch/riscv/boot/Image
7273
IMAGE_riscv64 = arch/riscv/boot/Image
73-
IMAGE_s390 = arch/s390/boot/bzImage
74+
IMAGE_s390x = arch/s390/boot/bzImage
7475
IMAGE_loongarch = arch/loongarch/boot/vmlinuz.efi
7576
IMAGE = $(objtree)/$(IMAGE_$(XARCH))
7677
IMAGE_NAME = $(notdir $(IMAGE))
@@ -89,7 +90,7 @@ DEFCONFIG_ppc64le = powernv_defconfig
8990
DEFCONFIG_riscv = defconfig
9091
DEFCONFIG_riscv32 = rv32_defconfig
9192
DEFCONFIG_riscv64 = defconfig
92-
DEFCONFIG_s390 = defconfig
93+
DEFCONFIG_s390x = defconfig
9394
DEFCONFIG_loongarch = defconfig
9495
DEFCONFIG = $(DEFCONFIG_$(XARCH))
9596

@@ -112,7 +113,7 @@ QEMU_ARCH_ppc64le = ppc64
112113
QEMU_ARCH_riscv = riscv64
113114
QEMU_ARCH_riscv32 = riscv32
114115
QEMU_ARCH_riscv64 = riscv64
115-
QEMU_ARCH_s390 = s390x
116+
QEMU_ARCH_s390x = s390x
116117
QEMU_ARCH_loongarch = loongarch64
117118
QEMU_ARCH = $(QEMU_ARCH_$(XARCH))
118119

@@ -140,7 +141,7 @@ QEMU_ARGS_ppc64le = -M powernv -append "console=hvc0 panic=-1 $(TEST:%=NOLIBC
140141
QEMU_ARGS_riscv = -M virt -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)"
141142
QEMU_ARGS_riscv32 = -M virt -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)"
142143
QEMU_ARGS_riscv64 = -M virt -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)"
143-
QEMU_ARGS_s390 = -M s390-ccw-virtio -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)"
144+
QEMU_ARGS_s390x = -M s390-ccw-virtio -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)"
144145
QEMU_ARGS_loongarch = -M virt -append "console=ttyS0,115200 panic=-1 $(TEST:%=NOLIBC_TEST=%)"
145146
QEMU_ARGS = -m 1G $(QEMU_ARGS_$(XARCH)) $(QEMU_ARGS_BIOS) $(QEMU_ARGS_EXTRA)
146147

@@ -158,7 +159,7 @@ CFLAGS_i386 = $(call cc-option,-m32)
158159
CFLAGS_ppc = -m32 -mbig-endian -mno-vsx $(call cc-option,-mmultiple)
159160
CFLAGS_ppc64 = -m64 -mbig-endian -mno-vsx $(call cc-option,-mmultiple)
160161
CFLAGS_ppc64le = -m64 -mlittle-endian -mno-vsx $(call cc-option,-mabi=elfv2)
161-
CFLAGS_s390 = -m64
162+
CFLAGS_s390x = -m64
162163
CFLAGS_mips32le = -EL -mabi=32 -fPIC
163164
CFLAGS_mips32be = -EB -mabi=32
164165
CFLAGS_STACKPROTECTOR ?= $(call cc-option,-mstack-protector-guard=global $(call cc-option,-fstack-protector-all))

tools/testing/selftests/nolibc/run-tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ all_archs=(
2323
mips32le mips32be
2424
ppc ppc64 ppc64le
2525
riscv32 riscv64
26-
s390
26+
s390x
2727
loongarch
2828
)
2929
archs="${all_archs[@]}"
@@ -109,6 +109,7 @@ crosstool_arch() {
109109
riscv) echo riscv64;;
110110
loongarch) echo loongarch64;;
111111
mips*) echo mips;;
112+
s390*) echo s390;;
112113
*) echo "$1";;
113114
esac
114115
}

0 commit comments

Comments
 (0)