OSDN Git Service

builddeb: Add automatic support for riscv* architectures
authorBen Hutchings <ben@decadent.org.uk>
Thu, 26 Jul 2018 10:22:47 +0000 (11:22 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 28 Jul 2018 01:53:44 +0000 (10:53 +0900)
Debian currently only defines "riscv64", but it seems safe to assume
that any 32-bit port will now be called "riscv32", also matching
$UTS_MACHINE.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/package/mkdebian

index 470899f..3ef2fd0 100755 (executable)
@@ -26,7 +26,7 @@ set_debarch() {
 
        # Attempt to find the correct Debian architecture
        case "$UTS_MACHINE" in
-       i386|ia64|alpha|m68k)
+       i386|ia64|alpha|m68k|riscv*)
                debarch="$UTS_MACHINE" ;;
        x86_64)
                debarch=amd64 ;;