From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753918AbaIEF2w (ORCPT ); Fri, 5 Sep 2014 01:28:52 -0400 Received: from ozlabs.org ([103.22.144.67]:40824 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752566AbaIEF2t convert rfc822-to-8bit (ORCPT ); Fri, 5 Sep 2014 01:28:49 -0400 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 Cc: linux-kbuild@vger.kernel.org, linuxppc-dev , linux-kernel , Anton Blanchard , Leann Ogasawara Date: Fri, 05 Sep 2014 15:28:47 +1000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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=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*)