From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Z9wbr-0005Gs-9p for mharc-grub-devel@gnu.org; Tue, 30 Jun 2015 10:34:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9wbp-0005Gi-5G for grub-devel@gnu.org; Tue, 30 Jun 2015 10:34:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9wbj-0004Sk-Js for grub-devel@gnu.org; Tue, 30 Jun 2015 10:34:01 -0400 Received: from e24smtp03.br.ibm.com ([32.104.18.24]:55164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9wbj-0004SF-7V for grub-devel@gnu.org; Tue, 30 Jun 2015 10:33:55 -0400 Received: from /spool/local by e24smtp03.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 30 Jun 2015 11:33:53 -0300 Received: from d24dlp02.br.ibm.com (9.18.248.206) by e24smtp03.br.ibm.com (10.172.0.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 30 Jun 2015 11:33:51 -0300 X-Helo: d24dlp02.br.ibm.com X-MailFrom: pfsmorigo@linux.vnet.ibm.com X-RcptTo: grub-devel@gnu.org Received: from d24relay03.br.ibm.com (d24relay03.br.ibm.com [9.13.184.25]) by d24dlp02.br.ibm.com (Postfix) with ESMTP id 203701DC0057 for ; Tue, 30 Jun 2015 10:32:49 -0400 (EDT) Received: from d24av05.br.ibm.com (d24av05.br.ibm.com [9.18.232.44]) by d24relay03.br.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t5UEWGYV44826824 for ; Tue, 30 Jun 2015 11:32:16 -0300 Received: from d24av05.br.ibm.com (localhost [127.0.0.1]) by d24av05.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t5UEXV3u026640 for ; Tue, 30 Jun 2015 10:33:31 -0400 Received: from [9.8.9.255] ([9.8.9.255]) by d24av05.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t5UEXUka026545; Tue, 30 Jun 2015 10:33:30 -0400 Message-ID: <5592A8B9.3080301@linux.vnet.ibm.com> Date: Tue, 30 Jun 2015 11:33:29 -0300 From: Paulo Flabiano Smorigo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Andrei Borzenkov , The development of GNU GRUB Subject: Re: [PATCH 1/2] Add powerpc little-endian (ppc64le) flags References: <1435669013-3741-1-git-send-email-pfsmorigo@linux.vnet.ibm.com> <1435669013-3741-2-git-send-email-pfsmorigo@linux.vnet.ibm.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15063014-0025-0000-0000-00000434B4FB X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 32.104.18.24 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 14:34:02 -0000 On 2015-06-30 11:29, Andrei Borzenkov wrote: > On Tue, Jun 30, 2015 at 5:03 PM, Vladimir 'phcoder' Serbinenko > wrote: >> Which compilers support these flags? I'm concerned of breaking old compilers >> > > -static and -mbig-endian are listed in gcc 2.95.3 documentation for PPC. I asked some toolchain folks and this flag is really old. IIUC even before GCC 2.95, which was released at March 16, 2001. > >> Le 30 juin 2015 14:57, "Paulo Flabiano Smorigo" >> a écrit : >>> >>> 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 >>> >>> >>> _______________________________________________ >>> Grub-devel mailing list >>> Grub-devel@gnu.org >>> https://lists.gnu.org/mailman/listinfo/grub-devel >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> https://lists.gnu.org/mailman/listinfo/grub-devel >> > -- Paulo Flabiano Smorigo IBM Linux Technology Center