builddeb: Add automatic support for mips{,64}r6{,el} architectures
authorBen Hutchings <ben@decadent.org.uk>
Thu, 26 Jul 2018 10:22:20 +0000 (11:22 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 28 Jul 2018 01:53:44 +0000 (10:53 +0900)
MIPS R6 is not fully backward-compatible, so Debian has separate
architecture names for userland built for R6.  Label kernel
packages accordingly.

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

index 350724cdc5af488f38a18d9b10c0d78bdb829aad..595482923844d1617e6af975a5c444bdbead0011 100755 (executable)
@@ -45,7 +45,9 @@ set_debarch() {
                debarch=hppa ;;
        mips*)
                if is_enabled CPU_LITTLE_ENDIAN; then
-                       debarch=mips$(if_enabled_echo 64BIT 64)el
+                       debarch=mips$(if_enabled_echo 64BIT 64)$(if_enabled_echo CPU_MIPSR6 r6)el
+               elif is_enabled CPU_MIPSR6; then
+                       debarch=mips$(if_enabled_echo 64BIT 64)r6
                else
                        debarch=mips
                fi