public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ipxe] rawhide: Strip down package, remove drivers except qemu drivers.
Date: Wed, 17 Jun 2026 05:47:07 GMT	[thread overview]
Message-ID: <178167522749.1.4426029377683339798.rpms-ipxe-48e47055e3c5@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/ipxe
            Branch : rawhide
            Commit : 48e47055e3c5a902dbf28cbfbfabe91ed72b33eb
            Author : Gerd Hoffmann <kraxel@redhat.com>
            Date   : 2026-06-15T17:54:02+02:00
            Stats  : +12/-60 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ipxe/c/48e47055e3c5a902dbf28cbfbfabe91ed72b33eb?branch=rawhide

            Log:
            Strip down package, remove drivers except qemu drivers.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from d5cfc8c2d807912d3aebc2e481269d2a90a77d8c)
(from CentOS Stream 10)

The "roms" subpackage is probably not needed in Fedora either.
Current upstream fails to build when building the "allroms" target.
In this old thread, upstream asked us not to build it:
https://lists.ipxe.org/pipermail/ipxe-devel/2012-March/001290.html

If anyone has a use case for it, please report it as a bug.
It can be restored, but please, only for Fedora, not ELN.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>

---
diff --git a/ipxe.spec b/ipxe.spec
index 4764478..9764c32 100644
--- a/ipxe.spec
+++ b/ipxe.spec
@@ -71,38 +71,22 @@ Obsoletes: gpxe <= 1.0.1
 
 %ifarch x86_64
 %package bootimgs-x86
-Summary: X86 Network boot loader images in bootable USB, CD, floppy and GRUB formats
+Summary: X86 Network boot loader images
 BuildArch: noarch
 Provides: %{name}-bootimgs = %{version}-%{release}
 Obsoletes: %{name}-bootimgs < 20200823-9.git4bd064de
 Obsoletes: gpxe-bootimgs <= 1.0.1
 
-%package roms
-Summary: Network boot loader roms in .rom format
-Requires: %{name}-roms-qemu = %{version}-%{release}
-BuildArch: noarch
-Obsoletes: gpxe-roms <= 1.0.1
-
 %package roms-qemu
 Summary: Network boot loader roms supported by QEMU, .rom format
 BuildArch: noarch
 Obsoletes: gpxe-roms-qemu <= 1.0.1
 
 %description bootimgs-x86
-iPXE is an open source network bootloader. It provides a direct
-replacement for proprietary PXE ROMs, with many extra features such as
-DNS, HTTP, iSCSI, etc.
-
-This package contains the iPXE boot images in USB, CD, floppy, and PXE
-UNDI formats.
-
-%description roms
-iPXE is an open source network bootloader. It provides a direct
-replacement for proprietary PXE ROMs, with many extra features such as
-DNS, HTTP, iSCSI, etc.
-
-This package contains the iPXE roms in .rom format.
+iPXE is an open source network bootloader.
 
+This package contains iPXE x86 boot images for UEFI (snponly.efi) and
+BIOS (undionly.kpxe).
 
 %description roms-qemu
 iPXE is an open source network bootloader. It provides a direct
@@ -115,15 +99,13 @@ This package contains the iPXE ROMs for devices emulated by QEMU, in
 
 %ifarch aarch64
 %package bootimgs-aarch64
-Summary: ARM Network boot loader images in bootable USB and GRUB formats
+Summary: ARM Network boot loader images
 BuildArch: noarch
 
 %description bootimgs-aarch64
-iPXE is an open source network bootloader. It provides a direct
-replacement for proprietary PXE ROMs, with many extra features such as
-DNS, HTTP, iSCSI, etc.
+iPXE is an open source network bootloader.
 
-This package contains the iPXE ARM boot images in USB and GRUB formats.
+This package contains iPXE aarch64 boot images for UEFI (snponly.efi).
 %endif
 
 %description
@@ -150,12 +132,10 @@ make_ipxe() {
 
 %ifarch x86_64
 
-make_ipxe bin-i386-efi/ipxe.efi bin-x86_64-efi/ipxe.efi \
-    bin-x86_64-efi/snponly.efi
+make_ipxe bin-x86_64-efi/snponly.efi
 
 make_ipxe ISOLINUX_BIN=/usr/share/syslinux/isolinux.bin \
-    bin/undionly.kpxe bin/ipxe.{dsk,iso,usb,lkrn} \
-    allroms
+    bin/undionly.kpxe
 
 # build roms with efi support for qemu
 mkdir bin-combined
@@ -184,29 +164,17 @@ done
 
 %ifarch aarch64
 make_ipxe bin-arm64-efi/snponly.efi
-%if 0%{?fedora}
-make_ipxe bin-arm64-efi/ipxe.efi
-%endif
 %endif
 
 %install
 %ifarch x86_64
 mkdir -p %{buildroot}/%{_datadir}/%{name}/
 mkdir -p %{buildroot}/%{_datadir}/%{name}.efi/
-pushd src/bin/
-
-cp -a undionly.kpxe ipxe.{iso,usb,dsk,lkrn} %{buildroot}/%{_datadir}/%{name}/
 
-for img in *.rom; do
-  if [ -e $img ]; then
-    cp -a $img %{buildroot}/%{_datadir}/%{name}/
-    echo %{_datadir}/%{name}/$img >> ../../rom.list
-  fi
-done
+pushd src/bin/
+cp -a undionly.kpxe %{buildroot}/%{_datadir}/%{name}/
 popd
 
-cp -a src/bin-i386-efi/ipxe.efi %{buildroot}/%{_datadir}/%{name}/ipxe-i386.efi
-cp -a src/bin-x86_64-efi/ipxe.efi %{buildroot}/%{_datadir}/%{name}/ipxe-x86_64.efi
 cp -a src/bin-x86_64-efi/snponly.efi %{buildroot}/%{_datadir}/%{name}/ipxe-snponly-x86_64.efi
 
 mkdir -p %{buildroot}%{_datadir}/%{name}/qemu/
@@ -216,9 +184,9 @@ for romstr in %{qemuroms}; do
   # remove from the main rom list and add them to qemu.list
   rom=$(echo "$romstr" | cut -d ":" -f 1)
   qemuname=$(echo "$romstr" | cut -d ":" -f 2)
-  sed -i -e "/\/${rom}.rom/d" rom.list
   echo %{_datadir}/%{name}/${rom}.rom >> qemu.rom.list
 
+  cp src/bin/${rom}.rom %{buildroot}/%{_datadir}/%{name}/
   cp src/bin-combined/${rom}.rom %{buildroot}/%{_datadir}/%{name}.efi/
   echo %{_datadir}/%{name}.efi/${rom}.rom >> qemu.rom.list
 
@@ -233,28 +201,15 @@ done
 %ifarch aarch64
 mkdir -p %{buildroot}/%{_datadir}/%{name}/arm64-efi
 cp -a src/bin-arm64-efi/snponly.efi %{buildroot}/%{_datadir}/%{name}/arm64-efi/snponly.efi
-%if 0%{?fedora}
-cp -a src/bin-arm64-efi/ipxe.efi %{buildroot}/%{_datadir}/%{name}/arm64-efi/ipxe.efi
-%endif
 %endif
 
 %ifarch x86_64
 %files bootimgs-x86
 %dir %{_datadir}/%{name}
-%{_datadir}/%{name}/ipxe.iso
-%{_datadir}/%{name}/ipxe.usb
-%{_datadir}/%{name}/ipxe.dsk
-%{_datadir}/%{name}/ipxe.lkrn
-%{_datadir}/%{name}/ipxe-i386.efi
-%{_datadir}/%{name}/ipxe-x86_64.efi
 %{_datadir}/%{name}/undionly.kpxe
 %{_datadir}/%{name}/ipxe-snponly-x86_64.efi
 %doc COPYING COPYING.GPLv2 COPYING.UBDL
 
-%files roms -f rom.list
-%dir %{_datadir}/%{name}
-%doc COPYING COPYING.GPLv2 COPYING.UBDL
-
 %files roms-qemu -f qemu.rom.list
 %dir %{_datadir}/%{name}
 %dir %{_datadir}/%{name}.efi
@@ -266,9 +221,6 @@ cp -a src/bin-arm64-efi/ipxe.efi %{buildroot}/%{_datadir}/%{name}/arm64-efi/ipxe
 %files bootimgs-aarch64
 %dir %{_datadir}/%{name}
 %dir %{_datadir}/%{name}/arm64-efi
-%if 0%{?fedora}
-%{_datadir}/%{name}/arm64-efi/ipxe.efi
-%endif
 %{_datadir}/%{name}/arm64-efi/snponly.efi
 %endif
 

                 reply	other threads:[~2026-06-17  5:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178167522749.1.4426029377683339798.rpms-ipxe-48e47055e3c5@fedoraproject.org \
    --to=kraxel@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox