rcutorture: add nolibc init support for mips, ppc and rv64
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 15 Oct 2023 22:25:14 +0000 (00:25 +0200)
committerNeeraj Upadhyay (AMD) <neeraj.iitr10@gmail.com>
Thu, 23 Nov 2023 06:28:18 +0000 (11:58 +0530)
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>
tools/testing/selftests/rcutorture/bin/mkinitrd.sh

index 212c52ca90b5526649ec7c556d2acd667ef687ad..f3f86712956024d23af1ba81bfbb1803e0cb0c66 100755 (executable)
@@ -67,7 +67,10 @@ ___EOF___
 # build using nolibc on supported archs (smaller executable) and fall
 # back to regular glibc on other ones.
 if echo -e "#if __x86_64__||__i386__||__i486__||__i586__||__i686__" \
-          "||__ARM_EABI__||__aarch64__||__s390x__||__loongarch__\nyes\n#endif" \
+          "||__ARM_EABI__||__aarch64__||(__mips__ && _ABIO32)" \
+          "||__powerpc__||(__riscv && __riscv_xlen == 64)" \
+          "||__s390x__||__loongarch__" \
+          "\nyes\n#endif" \
    | ${CROSS_COMPILE}gcc -E -nostdlib -xc - \
    | grep -q '^yes'; then
        # architecture supported by nolibc