aboutsummaryrefslogtreecommitdiffstats
path: root/mk/efi.mk
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-12-11 07:47:18 +0000
committerMatt Fleming <matt.fleming@intel.com>2013-12-11 09:15:22 +0000
commit31e11d3211ace5ea503d6c9c7a7350b382f41b66 (patch)
tree936bf5cfe4b3a232532f4f5521357b85837df401 /mk/efi.mk
parent6e8321066866bf41a91e095fa9421d24dbb886c0 (diff)
downloadsyslinux-31e11d3211ace5ea503d6c9c7a7350b382f41b66.tar.gz
syslinux-31e11d3211ace5ea503d6c9c7a7350b382f41b66.tar.xz
syslinux-31e11d3211ace5ea503d6c9c7a7350b382f41b66.zip
efi: Make gnu-efi build scripts more robust
Modify the scripts to check that they're called with the correct number of arguments and error out otherwise after printing some helpful info. This change also stops relying on passing arguments through environment variables and instead passes them explicitly to the scripts, which is definitely more robust, and handles the case where the scripts are invoked directly. Of course, now that the scripts can be invoked directly we need to regard any input as hostile and exit immediately on error. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'mk/efi.mk')
-rw-r--r--mk/efi.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/efi.mk b/mk/efi.mk
index e12e0a66..ca1dc75f 100644
--- a/mk/efi.mk
+++ b/mk/efi.mk
@@ -21,7 +21,7 @@ ifeq ($(ARCH),x86_64)
EFI_SUBARCH = $(ARCH)
endif
-$(shell $(topdir)/efi/check-gnu-efi.sh $(EFI_SUBARCH))
+$(shell $(topdir)/efi/check-gnu-efi.sh $(EFI_SUBARCH) $(topdir) $(objdir))
#LIBDIR=/usr/lib
FORMAT=efi-app-$(EFI_SUBARCH)