diff options
author | Matt Fleming <matt.fleming@intel.com> | 2013-12-11 07:47:18 +0000 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-12-11 09:15:22 +0000 |
commit | 31e11d3211ace5ea503d6c9c7a7350b382f41b66 (patch) | |
tree | 936bf5cfe4b3a232532f4f5521357b85837df401 /mk | |
parent | 6e8321066866bf41a91e095fa9421d24dbb886c0 (diff) | |
download | syslinux-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')
-rw-r--r-- | mk/efi.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |