[PATCH-for-10.2] roms: Do not try to build EDK2 for 32-bit ARM on Fedora

Philippe Mathieu-Daudé posted 1 patch 3 weeks, 5 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251117140420.62193-1-philmd@linaro.org
Maintainers: "Philippe Mathieu-Daudé" <philmd@linaro.org>, Gerd Hoffmann <kraxel@redhat.com>
roms/edk2-build.py | 4 ----
1 file changed, 4 deletions(-)
[PATCH-for-10.2] roms: Do not try to build EDK2 for 32-bit ARM on Fedora
Posted by Philippe Mathieu-Daudé 3 weeks, 5 days ago
With Fedora 27, support for 32-bit ARM hosts was dropped.
QEMU also stopped building the docker images in commit
0054dc8bde4 ("Update lcitool and fedora to 37").

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 roms/edk2-build.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/roms/edk2-build.py b/roms/edk2-build.py
index e564765aaa7..c7e9dc58ec0 100755
--- a/roms/edk2-build.py
+++ b/roms/edk2-build.py
@@ -293,10 +293,6 @@ def prepare_env(cfg, silent = False):
         # ubuntu
         os.environ['GCC5_ARM_PREFIX'] = 'arm-linux-gnueabi-'
         os.environ['GCC_ARM_PREFIX'] = 'arm-linux-gnueabi-'
-    elif binary_exists('arm-linux-gnu-gcc'):
-        # fedora
-        os.environ['GCC5_ARM_PREFIX'] = 'arm-linux-gnu-'
-        os.environ['GCC_ARM_PREFIX'] = 'arm-linux-gnu-'
     if binary_exists('loongarch64-linux-gnu-gcc'):
         os.environ['GCC5_LOONGARCH64_PREFIX'] = 'loongarch64-linux-gnu-'
         os.environ['GCC_LOONGARCH64_PREFIX'] = 'loongarch64-linux-gnu-'
-- 
2.51.0


Re: [PATCH-for-10.2] roms: Do not try to build EDK2 for 32-bit ARM on Fedora
Posted by Gerd Hoffmann 3 weeks, 4 days ago
On Mon, Nov 17, 2025 at 03:04:20PM +0100, Philippe Mathieu-Daudé wrote:
> With Fedora 27, support for 32-bit ARM hosts was dropped.
> QEMU also stopped building the docker images in commit
> 0054dc8bde4 ("Update lcitool and fedora to 37").

/me fails to see the link to the patch ...

This is about the /guest/ firmware images, and they are
cross-compiled.  And note that you can run 32-bit guests
on 64-bit hosts (if supported by the cpu).

Note that I have no objections to removing the 32-bit edk2
firmware images.  Upstream edk2 is in the process of removing
32-bit support, so that is going to happen sooner or later
anyway (for both arm and ia32).  Also UEFI on 32-bit never
really took off in the first place.

But when doing so do it properly please.  Remove build config
(in edk2-build.config), pre-built binaries, maybe also test
cases, ...

take care,
  Gerd
Re: [PATCH-for-10.2] roms: Do not try to build EDK2 for 32-bit ARM on Fedora
Posted by Philippe Mathieu-Daudé 3 weeks, 4 days ago
On 18/11/25 08:09, Gerd Hoffmann wrote:
> On Mon, Nov 17, 2025 at 03:04:20PM +0100, Philippe Mathieu-Daudé wrote:
>> With Fedora 27, support for 32-bit ARM hosts was dropped.
>> QEMU also stopped building the docker images in commit
>> 0054dc8bde4 ("Update lcitool and fedora to 37").
> 
> /me fails to see the link to the patch ...
> 
> This is about the /guest/ firmware images, and they are
> cross-compiled.  And note that you can run 32-bit guests
> on 64-bit hosts (if supported by the cpu).
> 
> Note that I have no objections to removing the 32-bit edk2
> firmware images.  Upstream edk2 is in the process of removing
> 32-bit support, so that is going to happen sooner or later
> anyway (for both arm and ia32).  Also UEFI on 32-bit never
> really took off in the first place.
> 
> But when doing so do it properly please.  Remove build config
> (in edk2-build.config), pre-built binaries, maybe also test
> cases, ...

I only have handy Fedora 42 and 43 VMs where this script doesn't
work anymore. I'm not really interested in installing a pre-37
Fedora to build EDK2 ARM, nor motivated right now to clean this
"properly". Better we wait EDK2 32-bit removal upstream and then
clean these QEMU scripts.

Regards,

Phil.