瀏覽代碼

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 年之前
父節點
當前提交
22739edfc5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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*)