Add support for loong64
authorGraham Inggs <ginggs@debian.org>
Wed, 15 May 2024 15:52:58 +0000 (17:52 +0200)
committerDominique Dumont <dod@debian.org>
Wed, 15 May 2024 15:52:58 +0000 (17:52 +0200)
Bug-Debian: https://bugs.debian.org/1062694
Forwarded: no

Gbp-Pq: Name add-support-for-loong64.patch

.github/workflows/CI-unix.yml
src/unix/linux.c

index 993cfb74209b324fea8cc89e40d01c1d54dc5f61..9bcc76ff0ce1003615a3280dda6ebfd27b731f4e 100644 (file)
@@ -110,6 +110,7 @@ jobs:
           - {target: ppc64,   toolchain: gcc-powerpc64-linux-gnu,   cc: powerpc64-linux-gnu-gcc,    qemu: qemu-ppc64-static   }
           - {target: ppc64le, toolchain: gcc-powerpc64le-linux-gnu, cc: powerpc64le-linux-gnu-gcc,  qemu: qemu-ppc64le-static }
           - {target: s390x,   toolchain: gcc-s390x-linux-gnu,       cc: s390x-linux-gnu-gcc,        qemu: qemu-s390x-static   }
+          - {target: loongarch,   toolchain: gcc-loongarch-linux-gnu,       cc: loongarch-linux-gnu-gcc,        qemu: qemu-loongarch-static   }
           - {target: mips,    toolchain: gcc-mips-linux-gnu,          cc: mips-linux-gnu-gcc,         qemu: qemu-mips-static     }
           - {target: mips64,  toolchain: gcc-mips64-linux-gnuabi64,   cc: mips64-linux-gnuabi64-gcc,  qemu: qemu-mips64-static   }
           - {target: mipsel,  toolchain: gcc-mipsel-linux-gnu,        cc: mipsel-linux-gnu-gcc,       qemu: qemu-mipsel-static   }
index 4164e90dbb0a39457d565a35be2d7890f66a7d71..a5f6e903f975426b1671a172b7baa745ca9b17a0 100644 (file)
@@ -85,6 +85,8 @@
 #  define __NR_copy_file_range 285
 # elif defined(__riscv)
 #  define __NR_copy_file_range 285
+# elif defined(__loongarch__)
+#  define __NR_copy_file_range 285
 # endif
 #endif /* __NR_copy_file_range */
 
 #  define __NR_statx 379
 # elif defined(__riscv)
 #  define __NR_statx 291
+# elif defined(__loongarch__)
+#  define __NR_statx 291
 # endif
 #endif /* __NR_statx */
 
 #  define __NR_getrandom 349
 # elif defined(__riscv)
 #  define __NR_getrandom 278
+# elif defined(__loongarch__)
+#  define __NR_getrandom 278
 # endif
 #endif /* __NR_getrandom */