Browse Source

deb-pkg: Add support for powerpc little endian

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>
Michael Neuling 11 years ago
parent
commit
22739edfc5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/package/builddeb

+ 1 - 1
scripts/package/builddeb

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