aboutsummaryrefslogtreecommitdiffstats
path: root/mk
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2014-01-08 10:10:36 +0000
committerMatt Fleming <matt.fleming@intel.com>2014-01-08 10:57:37 +0000
commit9ab3608ba4a51e234f251d84f764f39f20e4ded3 (patch)
tree36566b980294e78284c17a184e1481eee5b968fc /mk
parent481e37e0b6ab2f246ee4b46a1808c4a57ca4259f (diff)
downloadsyslinux-9ab3608ba4a51e234f251d84f764f39f20e4ded3.tar.gz
syslinux-9ab3608ba4a51e234f251d84f764f39f20e4ded3.tar.xz
syslinux-9ab3608ba4a51e234f251d84f764f39f20e4ded3.zip
efi: Make the gnu-efi build scripts more portable
Not all distributions point /bin/sh at /bin/bash, so remove some bashisms (pushd/popd) and require that build-gnu-efi.sh be run from the Syslinux object directory. Also, swap realpath(1) for readlink(1) because the former isn't available on Debian. Reported-by: Ferenc Wagner <wferi@niif.hu> Reported-by: Celelibi <celelibi@gmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/efi.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/mk/efi.mk b/mk/efi.mk
index 82bd51f0..9377637c 100644
--- a/mk/efi.mk
+++ b/mk/efi.mk
@@ -21,8 +21,7 @@ ifeq ($(ARCH),x86_64)
EFI_SUBARCH = $(ARCH)
endif
-output = $(shell $(topdir)/efi/check-gnu-efi.sh $(EFI_SUBARCH) \
- $(topdir) $(objdir))
+output = $(shell $(topdir)/efi/check-gnu-efi.sh $(EFI_SUBARCH) $(objdir))
ifneq ($(output),)
$(error Failed to build gnu-efi for $(EFI_SUBARCH))
endif