summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMatt Clarkson <mattyclarkson@gmail.com>2017-04-06 15:12:15 +0200
committerMatt Clarkson <mattyclarkson@gmail.com>2017-04-06 15:33:02 +0200
commitcf8e2953b56281e7008a8757340801d427c994e9 (patch)
tree9087fd44a7a4c39aaa539e423c34e0fdcd4762fe /Makefile.am
parentbuild-sys: correctly search for gnu-efi header (diff)
downloadsystemd-cf8e2953b56281e7008a8757340801d427c994e9.tar.xz
systemd-cf8e2953b56281e7008a8757340801d427c994e9.zip
build-sys: correct ARM32 GNU EFI boot binary build
Due to ARM not having an EFI capable objcopy we need to use the binary output argument. This is correctly set up for AArch64 but is missed when building for ARM32. This patch adds the ARCH_ARM automake define which can then be used in the makefile to determine if to use the correct linker flags. The addition of the ARM32 flags is a copy and paste from the AArch64 to create a logical OR for the ARCH_AARCH64 and ARCH_ARM variables. I couldn't figure out a better way to create the conditional with basic Make language constructs.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 2a5610740e..5cd38d991b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2978,10 +2978,15 @@ if ARCH_AARCH64
efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
EFI_FORMAT = -O binary
else
+if ARCH_ARM
+efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
+EFI_FORMAT = -O binary
+else
EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
endif
endif
endif
+endif
# ------------------------------------------------------------------------------
systemd_boot_headers = \