Skip to content

Commit 454723b

Browse files
t-8chneeraju
authored andcommitted
rcutorture: add nolibc init support for mips, ppc and rv64
Use nolibc for all support architectures. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.iitr10@gmail.com>
1 parent 69dcbbd commit 454723b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/testing/selftests/rcutorture/bin/mkinitrd.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ ___EOF___
6767
# build using nolibc on supported archs (smaller executable) and fall
6868
# back to regular glibc on other ones.
6969
if echo -e "#if __x86_64__||__i386__||__i486__||__i586__||__i686__" \
70-
"||__ARM_EABI__||__aarch64__||__s390x__||__loongarch__\nyes\n#endif" \
70+
"||__ARM_EABI__||__aarch64__||(__mips__ && _ABIO32)" \
71+
"||__powerpc__||(__riscv && __riscv_xlen == 64)" \
72+
"||__s390x__||__loongarch__" \
73+
"\nyes\n#endif" \
7174
| ${CROSS_COMPILE}gcc -E -nostdlib -xc - \
7275
| grep -q '^yes'; then
7376
# architecture supported by nolibc

0 commit comments

Comments
 (0)