Skip to content

Commit ecf671c

Browse files
committed
torture: Add init-program support for loongarch
This commit adds the __loongarch__, __loongarch_lp64, and __loongarch_double_float targets to rcutorture's mkinitrd.sh script in order to allow nolibc init programs for loongarch. [ paulmck: Apply feedback from Feiyang Chen. ] Cc: Feiyang Chen <[email protected]> Cc: Huacai Chen <[email protected]> Cc: Willy Tarreau <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 10f84c2 commit ecf671c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ ___EOF___
6363
# build using nolibc on supported archs (smaller executable) and fall
6464
# back to regular glibc on other ones.
6565
if echo -e "#if __x86_64__||__i386__||__i486__||__i586__||__i686__" \
66-
"||__ARM_EABI__||__aarch64__||__s390x__\nyes\n#endif" \
66+
"||__ARM_EABI__||__aarch64__||__s390x__||__loongarch__\nyes\n#endif" \
6767
| ${CROSS_COMPILE}gcc -E -nostdlib -xc - \
6868
| grep -q '^yes'; then
6969
# architecture supported by nolibc

0 commit comments

Comments
 (0)