Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Z9v6c-0002o2-DB for mharc-grub-devel@gnu.org; Tue, 30 Jun 2015 08:57:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9v6a-0002nX-3p for grub-devel@gnu.org; Tue, 30 Jun 2015 08:57:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9v6T-0006Ee-Tz for grub-devel@gnu.org; Tue, 30 Jun 2015 08:57:39 -0400 Received: from e24smtp02.br.ibm.com ([32.104.18.86]:44866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9v6T-0006E4-I0 for grub-devel@gnu.org; Tue, 30 Jun 2015 08:57:33 -0400 Received: from /spool/local by e24smtp02.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 30 Jun 2015 09:57:35 -0300 Received: from d24dlp02.br.ibm.com (9.18.248.206) by e24smtp02.br.ibm.com (10.172.0.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 30 Jun 2015 09:57:33 -0300 X-Helo: d24dlp02.br.ibm.com X-MailFrom: pfsmorigo@linux.vnet.ibm.com X-RcptTo: grub-devel@gnu.org Received: from d24relay02.br.ibm.com (d24relay02.br.ibm.com [9.13.184.26]) by d24dlp02.br.ibm.com (Postfix) with ESMTP id B90E31DC0057 for ; Tue, 30 Jun 2015 08:56:26 -0400 (EDT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.8.31.93]) by d24relay02.br.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t5UCu2nb6357358 for ; Tue, 30 Jun 2015 09:56:02 -0300 Received: from d24av02.br.ibm.com (localhost [127.0.0.1]) by d24av02.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t5UCvQWk029030 for ; Tue, 30 Jun 2015 09:57:26 -0300 Received: from london.ltc.br.ibm.com ([9.8.9.255]) by d24av02.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t5UCvNU6028987; Tue, 30 Jun 2015 09:57:25 -0300 From: Paulo Flabiano Smorigo To: The development of GNU GRUB Subject: [PATCH 1/2] Add powerpc little-endian (ppc64le) flags Date: Tue, 30 Jun 2015 09:56:52 -0300 Message-Id: <1435669013-3741-2-git-send-email-pfsmorigo@linux.vnet.ibm.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1435669013-3741-1-git-send-email-pfsmorigo@linux.vnet.ibm.com> References: <1435669013-3741-1-git-send-email-pfsmorigo@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15063012-0021-0000-0000-000003010971 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 32.104.18.86 Cc: Paulo Flabiano Smorigo X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 12:57:41 -0000 libgcc dependency was removed *just* for this target because the distros that use ppc64el doesn't have 32-bit support on it. * configure.ac: Add targets for powerpc64el and skip libgcc. * Makefile.am: Likewise. --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index fd8a62e..0a79fad 100644 --- a/configure.ac +++ b/configure.ac @@ -116,6 +116,7 @@ if test "x$with_platform" = x; then x86_64-*) platform=pc ;; powerpc-*) platform=ieee1275 ;; powerpc64-*) platform=ieee1275 ;; + powerpc64le-*) platform=ieee1275 ;; sparc64-*) platform=ieee1275 ;; mipsel-*) platform=loongson ;; mips-*) platform=arc ;; @@ -138,6 +139,7 @@ case "$target_cpu"-"$platform" in x86_64-none) ;; x86_64-*) target_cpu=i386 ;; powerpc64-ieee1275) target_cpu=powerpc ;; + powerpc64le-ieee1275) target_cpu=powerpc ;; esac # Check if the platform is supported, make final adjustments. @@ -601,6 +603,12 @@ if test "x$target_cpu" = xi386 && test "x$platform" != xemu; then TARGET_CFLAGS="$TARGET_CFLAGS -march=i386" fi +if test x$target_cpu = xpowerpc; then + TARGET_CFLAGS="$TARGET_CFLAGS -mbig-endian" + TARGET_CCASFLAGS="$TARGET_CCASFLAGS -mbig-endian" + TARGET_LDFLAGS="$TARGET_LDFLAGS -static -mbig-endian" +fi + if test "x$target_m32" = x1; then # Force 32-bit mode. TARGET_CFLAGS="$TARGET_CFLAGS -m32" -- 2.1.0