builddeb: Add automatic support for mips64el architecture
authorBen Hutchings <ben@decadent.org.uk>
Thu, 26 Jul 2018 10:21:16 +0000 (11:21 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 28 Jul 2018 01:53:44 +0000 (10:53 +0900)
We currently label 64-bit little-endian kernel packages as
mipsel (32-bit little-endian), mostly it was officially supported
while mips64el (64-bit little-endian) was not.  Now both are
officially supported, so label these packages as mips64el.

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

index 0891974f499b4b7db6fb8314341df4c7b48dee92..350724cdc5af488f38a18d9b10c0d78bdb829aad 100755 (executable)
@@ -44,7 +44,12 @@ set_debarch() {
        parisc*)
                debarch=hppa ;;
        mips*)
-               debarch=mips$(if_enabled_echo CPU_LITTLE_ENDIAN el) ;;
+               if is_enabled CPU_LITTLE_ENDIAN; then
+                       debarch=mips$(if_enabled_echo 64BIT 64)el
+               else
+                       debarch=mips
+               fi
+               ;;
        aarch64|arm64)
                debarch=arm64 ;;
        arm*)