]> git.ipfire.org Git - people/ms/linux.git/commitdiff
builddeb: Add automatic support for ppc64 and powerpcspe architectures
authorBen Hutchings <ben@decadent.org.uk>
Thu, 26 Jul 2018 10:21:09 +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 big-endian kernel packages as
powerpc (32-bit), mostly because it was officially supported while
ppc64 (64-bit big-endian) was not.  Now neither is officially
supported, so label these packages as ppc64.

Debian also has a powerpcspe (32-bit with SPE) architecture.
Label packages with a suitable configuration as powerpcspe.

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

index ada3c73d1493322eb2834ed26434d747606d8e68..0891974f499b4b7db6fb8314341df4c7b48dee92 100755 (executable)
@@ -35,7 +35,12 @@ set_debarch() {
        s390*)
                debarch=s390x ;;
        ppc*)
-               debarch=$(if_enabled_echo CPU_LITTLE_ENDIAN ppc64el powerpc) ;;
+               if is_enabled 64BIT; then
+                       debarch=ppc64$(if_enabled_echo CPU_LITTLE_ENDIAN el)
+               else
+                       debarch=powerpc$(if_enabled_echo SPE spe)
+               fi
+               ;;
        parisc*)
                debarch=hppa ;;
        mips*)