[openSUSE] roms: Build ipxe with NO_WERROR=1 (bsc#1227960)

This should allow qemu to be built with GCC14. [1] I believe that the
package actually intends to use -Wno-error already (which makes sense
for package building) because it puts it to EXTRA_CFLAGS, but at least
the ipxe slap -Werror after EXTRA_CFLAGS, unless NO_WERROR is defined
to one.

[1] https://github.com/ipxe/ipxe/issues/1219

References: bsc#1227960
Signed-off-by: Martin Jambor <mjambor@suse.com>
[set NO_WERROR=1 only for ipxe]
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
This commit is contained in:
2024-07-23 12:33:43 +02:00
committed by Dario Faggioli
parent 05d8a25ffa
commit bb01c65b12

View File

@@ -875,16 +875,17 @@ popd
%make_build -C %srcdir/roms seavgabios-ati \
%make_build -C %srcdir/roms pxerom
%make_build -C %srcdir/roms pxerom NO_WERROR=1
%make_build -C %srcdir/roms edk2-basetools EXTRA_OPTFLAGS='-fPIE'
%make_build -C %srcdir/roms efirom
%make_build -C %srcdir/roms efirom NO_WERROR=1
%if %{force_fit_virtio_pxe_rom}
pushd %srcdir
patch -p1 < %{rpmfilesdir}/openSUSE-pcbios-stub-out-the-SAN-req-s-i.patch
popd
%make_build -C %srcdir/roms pxerom_variants=virtio pxerom_targets=1af41000 pxerom
%make_build -C %srcdir/roms NO_WERROR=1 pxerom_variants=virtio pxerom_targets=1af41000 pxerom
%endif
for i in %supported_nics_large %unsupported_nics