From dd0009ec4d91d7f7b3854efbbb2732b6dc44a6d0 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Tue, 26 Jun 2018 16:01:03 -0400 Subject: [PATCH] Enable 32-bit ARM EFI builds. Signed-off-by: Peter Jones --- grub.macros | 9 +++++---- grub2.spec | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/grub.macros b/grub.macros index 0f1c120..b5dd834 100644 --- a/grub.macros +++ b/grub.macros @@ -26,6 +26,7 @@ -e 's/-mregparm=3/-mregparm=4/g' \\\ -e 's/-fexceptions//g' \\\ -e 's/-fasynchronous-unwind-tables//g' \\\ + -e 's/-mfloat-abi=hard/-mfloat-abi=float/g' \\\ -e 's/^/ -fno-strict-aliasing /' \\\ %{nil} @@ -88,7 +89,7 @@ %global efi_modules " backtrace http linuxefi usb usbserial_common usbserial_pl2303 usbserial_ftdi usbserial_usbdebug " %endif -%ifarch aarch64 +%ifarch aarch64 %{arm} %global legacy_provides -l %endif @@ -301,7 +302,7 @@ git config --unset user.name \ --with-grubdir=%{name} \\\ --program-transform-name=s,grub,%{name}, \\\ --disable-grub-mount \\\ - --disable-werror \ + --disable-werror || ( cat config.log ; exit 1 ) \ %{nil} %define do_efi_build_modules() \ @@ -319,7 +320,7 @@ for x in grub-mkimage ; do \\\ done \ %{nil} -%ifarch x86_64 aarch64 +%ifarch x86_64 aarch64 %{arm} %define mkimage() \ %{4}./grub-mkimage -O %{1} -o %{2}.orig \\\ -p /EFI/%{efidir} -d grub-core ${GRUB_MODULES} \ @@ -380,7 +381,7 @@ cd grub-%{1}-%{tarversion} \ --with-grubdir=%{name} \\\ --program-transform-name=s,grub,%{name}, \\\ --disable-grub-mount \\\ - --disable-werror \ + --disable-werror || ( cat config.log ; exit 1 ) \ make %{?_smp_mflags} \ cd .. \ %{nil} diff --git a/grub2.spec b/grub2.spec index d238a84..3fde80c 100644 --- a/grub2.spec +++ b/grub2.spec @@ -46,7 +46,7 @@ BuildRequires: pesign >= 0.99-8 BuildRequires: ccache %endif -ExcludeArch: s390 s390x %{arm} +ExcludeArch: s390 s390x Obsoletes: %{name} <= %{evr} %if 0%{with_legacy_arch}