From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Z4q6w-00009O-E9 for mharc-grub-devel@gnu.org; Tue, 16 Jun 2015 08:37:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4q6s-0008V7-MT for grub-devel@gnu.org; Tue, 16 Jun 2015 08:36:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4q6p-0007EF-6J for grub-devel@gnu.org; Tue, 16 Jun 2015 08:36:58 -0400 Received: from e24smtp04.br.ibm.com ([32.104.18.25]:42663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4q6o-0007CB-PR for grub-devel@gnu.org; Tue, 16 Jun 2015 08:36:55 -0400 Received: from /spool/local by e24smtp04.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 16 Jun 2015 09:36:49 -0300 Received: from d24dlp01.br.ibm.com (9.18.248.204) by e24smtp04.br.ibm.com (10.172.0.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 16 Jun 2015 09:36:48 -0300 X-Helo: d24dlp01.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 d24dlp01.br.ibm.com (Postfix) with ESMTP id 5DD483520054 for ; Tue, 16 Jun 2015 08:35:43 -0400 (EDT) Received: from d24av03.br.ibm.com (d24av03.br.ibm.com [9.8.31.95]) by d24relay03.br.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t5GCZZEw59113624 for ; Tue, 16 Jun 2015 09:35:35 -0300 Received: from d24av03.br.ibm.com (localhost [127.0.0.1]) by d24av03.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t5GCakqY021920 for ; Tue, 16 Jun 2015 09:36:46 -0300 Received: from [9.78.149.83] ([9.78.149.83]) by d24av03.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t5GCajpS021887; Tue, 16 Jun 2015 09:36:46 -0300 Message-ID: <5580185D.4020902@linux.vnet.ibm.com> Date: Tue, 16 Jun 2015 09:36:45 -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 Subject: Re: [RFC PATCH 0/3] grub powerpc64 little-endian enablement References: <1409255765-3209-1-git-send-email-pfsmorigo@linux.vnet.ibm.com> <20150615201508.65201eb9@opensuse.site> In-Reply-To: <20150615201508.65201eb9@opensuse.site> 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: 15061612-0029-0000-0000-000003CC3BAB X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 32.104.18.25 Cc: grub-devel@gnu.org, 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, 16 Jun 2015 12:36:59 -0000 On 2015-06-15 14:15, Andrei Borzenkov wrote: > В Thu, 28 Aug 2014 16:56:02 -0300 > Paulo Flabiano Smorigo пишет: > >> From: Paulo Flabiano Smorigo >> >> Hi, >> >> At the beginning of the year we provide a patchset that enabled GRUB for >> little-endian PowerPC. Our approach at the time was to build GRUB itself and >> its tools in 64-bit little-endian. One of the reasons of build in 64-bit is >> to avoid 32-bit dependencies in the distro and build a system entirely 64-bit. >> >> This patchset was not welcomed at the time because it would bring a >> high-maintainance-cost, without real gain since it could just be cross-compiled. >> >> After that, Brent Baude, Vladmir (phcoder) and I started to work in a solution >> that would cross-compile but without 32-bit dependencies. This patchset is the >> result of this new approach. It's based on the work of Brent Baude, Vladimir >> (phcoder), and Tomohiro. >> >> It can be devided in two parts: >> >> 1) Skip libgcc dependency just for ppc64el (patch 1 and 2); > > This is now default for all platforms > >> 2) Check elf endianess and byteswap if necessary (patch 3); >> > > That's still pending. Yes, I'm aware of that. :) > >> The result is GRUB itself in 32-bit BE and its tools in 64-bit LE. This solution >> satisfies the needs of the distros. I tested it in three different distros, in >> both endianess and it's fine. >> >> If thoses patches were accepted we will have an official solution. Nowadays, >> distros are taking diffrent approachs. Some of then are using the original >> solutions and others are using cross-compiler. >> > > Could you resend missing bits rebased to current head? > Sure thing. I'll review it once more and send it to the ML later this week. -- Paulo Flabiano Smorigo IBM Linux Technology Center