From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id AC9461A00FD for ; Fri, 5 Sep 2014 15:28:47 +1000 (EST) Message-ID: <1409894927.11359.26.camel@ale.ozlabs.ibm.com> Subject: deb-pkg: Add support for powerpc little endian From: Michael Neuling To: Michal Marek , Ben Hutchings Date: Fri, 05 Sep 2014 15:28:47 +1000 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: Leann Ogasawara , linuxppc-dev , linux-kernel , Anton Blanchard , linux-kbuild@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , The Debian powerpc little endian architecture is called ppc64le. 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 diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 35d5a58..6f4a1af 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -37,7 +37,7 @@ create_package() { s390*) debarch=3Ds390$(grep -q CONFIG_64BIT=3Dy $KCONFIG_CONFIG && echo x || tr= ue) ;; ppc*) - debarch=3Dpowerpc ;; + debarch=3D$(grep -q CPU_LITTLE_ENDIAN=3Dy $KCONFIG_CONFIG && echo ppc64e= l || echo powerpc) ;; parisc*) debarch=3Dhppa ;; mips*)