From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZHAh9-0000Mu-Qs for mharc-grub-devel@gnu.org; Mon, 20 Jul 2015 09:01:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHAh8-0000MU-4Y for grub-devel@gnu.org; Mon, 20 Jul 2015 09:01:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHAh4-0007TM-3l for grub-devel@gnu.org; Mon, 20 Jul 2015 09:01:22 -0400 Received: from e24smtp03.br.ibm.com ([32.104.18.24]:44681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHAh3-0007Sy-PI for grub-devel@gnu.org; Mon, 20 Jul 2015 09:01:18 -0400 Received: from /spool/local by e24smtp03.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 20 Jul 2015 10:01:15 -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; Mon, 20 Jul 2015 10:01:13 -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 882D61DC0051 for ; Mon, 20 Jul 2015 09:00:11 -0400 (EDT) Received: from d24av04.br.ibm.com (d24av04.br.ibm.com [9.8.31.97]) by d24relay03.br.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t6KCxp4E5243386 for ; Mon, 20 Jul 2015 09:59:51 -0300 Received: from d24av04.br.ibm.com (localhost [127.0.0.1]) by d24av04.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t6KD1BIW006744 for ; Mon, 20 Jul 2015 10:01:11 -0300 Received: from [9.78.151.219] ([9.78.151.219]) by d24av04.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t6KD1B7p006703; Mon, 20 Jul 2015 10:01:11 -0300 Message-ID: <55ACF116.1040408@linux.vnet.ibm.com> Date: Mon, 20 Jul 2015 10:01:10 -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: The development of GNU GRUB , =?UTF-8?B?VmxhZGltaQ==?= =?UTF-8?B?ciAnz4YtY29kZXIvcGhjb2RlcicgU2VyYmluZW5rbw==?= 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> <5592DA7A.8050107@linux.vnet.ibm.com> <20150630212856.12c56676@opensuse.site> <20150704094659.6aa48bf5@opensuse.site> <20150705203839.124984af@opensuse.site> <55A69B8F.4020105@gmail.com> <20150716215515.6a034cbd@opensuse.site> <55A80063.2000902@gmail.com> <20150716223057.5f63057d@opensuse.site> In-Reply-To: <20150716223057.5f63057d@opensuse.site> Content-Type: multipart/alternative; boundary="------------020109060508090309070907" X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15072013-0025-0000-0000-0000045B4BF5 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: Mon, 20 Jul 2015 13:01:23 -0000 This is a multi-part message in MIME format. --------------020109060508090309070907 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2015-07-16 16:30, Andrei Borzenkov wrote: > В Thu, 16 Jul 2015 21:05:07 +0200 > Vladimir 'φ-coder/phcoder' Serbinenko пишет: > >> On 16.07.2015 20:55, Andrei Borzenkov wrote: >>> В Wed, 15 Jul 2015 19:42:39 +0200 >>> Vladimir 'φ-coder/phcoder' Serbinenko пишет: >>> >>>>> It is possible to compile using "--target=powerpc -Wl,-EB" - this works >>>>> on all three ppc, ppc64 and ppc64le, but this means hardcoding GNU ld >>>>> dependency. >>>>> >>>> Thanks for this info. >>>> See attached patch >>> Test has to come before asm tests (so that we are sure to compile >>> for the right target). >>> >>> But real problem is that -Wl,-EB has to be added to TARGET_LDFLAGS only >>> >> Yes, discovered it already and updated the patch > Yes, this version builds OK both in native PPC environment as well as > cross-compiling. > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel Here works too. Both native and cross-compiled. -- Paulo Flabiano Smorigo IBM Linux Technology Center --------------020109060508090309070907 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 2015-07-16 16:30, Andrei Borzenkov wrote:
В Thu, 16 Jul 2015 21:05:07 +0200
Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> пишет:

On 16.07.2015 20:55, Andrei Borzenkov wrote:
В Wed, 15 Jul 2015 19:42:39 +0200
Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> пишет:


            
It is possible to compile using "--target=powerpc -Wl,-EB" - this works
on all three ppc, ppc64 and ppc64le, but this means hardcoding GNU ld
dependency.

Thanks for this info.
See attached patch
Test has to come before asm tests (so that we are sure to compile
for the right target).

But real problem is that -Wl,-EB has to be added to TARGET_LDFLAGS only

Yes, discovered it already and updated the patch
Yes, this version builds OK both in native PPC environment as well as
cross-compiling.


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Here works too. Both native and cross-compiled.
-- 
Paulo Flabiano Smorigo
IBM Linux Technology Center
--------------020109060508090309070907--