deb-pkg: Add support for powerpc little endian
authorMichael Neuling <mikey@neuling.org>
Fri, 5 Sep 2014 07:55:18 +0000 (17:55 +1000)
committerMichal Marek <mmarek@suse.cz>
Fri, 12 Sep 2014 14:10:42 +0000 (16:10 +0200)
The Debian powerpc little endian architecture is called ppc64el.  This
is the default architecture used by Ubuntu for powerpc.

The below checks the kernel config to see if we are compiling little
endian and sets the Debian arch appropriately.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/package/builddeb

index 7c0e6e4..cfe5e27 100644 (file)
@@ -37,7 +37,7 @@ create_package() {
        s390*)
                debarch=s390$(grep -q CONFIG_64BIT=y $KCONFIG_CONFIG && echo x || true) ;;
        ppc*)
-               debarch=powerpc ;;
+               debarch=$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo ppc64el || echo powerpc) ;;
        parisc*)
                debarch=hppa ;;
        mips*)