From debbugs-submit-bounces@debbugs.gnu.org Tue May 10 17:37:53 2022 Received: (at 55343) by debbugs.gnu.org; 10 May 2022 21:37:53 +0000 Received: from localhost ([127.0.0.1]:35338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noXYH-0007e5-B2 for submit@debbugs.gnu.org; Tue, 10 May 2022 17:37:53 -0400 Received: from cyberdimension.org ([80.67.179.20]:35814 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noXYF-0007dx-Pw for 55343@debbugs.gnu.org; Tue, 10 May 2022 17:37:52 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 720a23a6; Tue, 10 May 2022 21:36:53 +0000 (UTC) Received: from primarylaptop.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id bbbee57e; Tue, 10 May 2022 21:36:53 +0000 (UTC) Date: Tue, 10 May 2022 23:39:10 +0200 From: Denis 'GNUtoo' Carikli To: Maxime Devos Subject: Re: [bug#55343] [PATCH 2/2] image: Add new efi32-raw format for 32bit UEFI on 64bit systems Message-ID: <20220510233910.683f8454@primarylaptop.localdomain> In-Reply-To: References: <20220510011812.15710e0b@primarylaptop.localdomain> <20220509232451.30605-1-GNUtoo@cyberdimension.org> <20220509232451.30605-2-GNUtoo@cyberdimension.org> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/OUDjcvkTNe8QYgWx0TX9g.b"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55343 Cc: 55343@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Sig_/OUDjcvkTNe8QYgWx0TX9g.b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 10 May 2022 11:32:52 +0200 Maxime Devos wrote: > Denis 'GNUtoo' Carikli schreef op di 10-05-2022 om 01:24 [+0200]: > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ((#:confi= gure-flags flags > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ''()) `(cons* ,(cond ((target-x86?) "--target=3Di386") > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ((target-arm?) "--ta= rget=3Darm")) > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 ,flags))))))) >=20 > Isn't this just grub but compiled for the 32-bit variant of the > system? > Or do you mean to use 'grub' as a cross-compiler here (instead of > something that is being cross-compiled), like 'gcc'? Apparently the modification I did (passing --target=3Di386) results in a 64bit grub-mkimage and 32bit modules in lib/grub/i386-efi so I think it's more like a cross-compiler. I verified that by installing grub-efi32 and using file on the mentioned files. It's also possible to have something like multiple target/architectures with GRUB by compiling it for each target/architecture and then shipping the modules in lib/grub/* but that would require way more work, so it would make more sense to do that as a separate patch set if needed. Though for now I'm just interested in adding 32bit UEFI support because I did the work for testing/learning, and I would prefer if that work results in Guix supporting 32bit UEFI somehow. Denis. --Sig_/OUDjcvkTNe8QYgWx0TX9g.b Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmJ6234ACgkQX138wUF3 4mMpjQ/+P++b6QVnIDwXIt/2HELmpfTSZK1npA/88qK7gBFzDYANT7mqrtmX188T CNXvxjugkOTJi69lRuvq8p+O6oIlTnHXa60GLy9liJ7L3eDtoeaMZdHjjnSxyGK9 BfzKy4+ey7j+mUTwNRXQORAazB5W5jmyTxuspJ/xRyW9Py5++wL3T/Fdw0WhSE8S smHPL8eLFkXfdM1EN/gqNl4xT/kIZ3oRZvUY9m4W247SrxxurXuEMoZvSIM/Z++0 dmC8MIJm9XSYJNBazV45veRGv1xlbNmH/P5u1w420t8+mQYAPAZw/CYQc0wQ3a/1 HV8/nQnxChFGX0Ldagxy9a7MCCgeefh+QiihIjInFT+lWAXxfIUQIcD2QjbsWzfj whpSp5EDMkbawhCX0I82WM9++Jy5cyZu6oh8vmt2VPrce2vPbqPYhK7FiOkIZW+i ypt3z2mwDr66lkUfu4WUP5V4dNAadZkb/S+OMIWg44ZoWAhhxn0YzkiFBIgtsuN9 o4ySw2t1b1Z4UqWxXGvWWvnKNWJOnAKKO5tkBr2wwabGzgdojwwfkNdpqH/1cVgS MAUGtd9KiwgfbAfoyDaYsKL0dwGim6vItlAkUuZn8gz8Ka1Wfswme5eI1GtzrEGL +d88EuhoCEsi23DSWzhVB52HNq+ryInrr4SFUXz1br2F5tDvM7g= =68aZ -----END PGP SIGNATURE----- --Sig_/OUDjcvkTNe8QYgWx0TX9g.b--