[syslinux:firmware] Makefile: add netinstall target for efi
syslinux-bot for Matt Fleming
matt.fleming at intel.com
Fri Jul 12 03:12:05 PDT 2013
Commit-ID: 6ff0a531eaec6b11843df9b9393ebf8fc0f171f4
Gitweb: http://www.syslinux.org/commit/6ff0a531eaec6b11843df9b9393ebf8fc0f171f4
Author: Matt Fleming <matt.fleming at intel.com>
AuthorDate: Fri, 12 Jul 2013 10:03:45 +0100
Committer: Matt Fleming <matt.fleming at intel.com>
CommitDate: Fri, 12 Jul 2013 10:03:45 +0100
Makefile: add netinstall target for efi
Signed-off-by: Matt Fleming <matt.fleming at intel.com>
---
Makefile | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 0f85393..a9b515c 100644
--- a/Makefile
+++ b/Makefile
@@ -168,6 +168,8 @@ ISUBDIRS =
INSTALLSUBDIRS = efi
+NETINSTALLABLE = efi/syslinux.efi $(INSTALLABLE_MODULES)
+
else
BSUBDIRS = codepage com32 lzo core memdisk mbr memdump gpxe sample \
@@ -213,13 +215,13 @@ firmware = bios efi32 efi64
# If no firmware was specified the rest of MAKECMDGOALS applies to all
# firmware.
ifeq ($(filter $(firmware),$(MAKECMDGOALS)),)
-all strip tidy clean dist spotless install installer: bios efi32 efi64
+all strip tidy clean dist spotless install installer netinstall: bios efi32 efi64
else
# Don't do anything for the rest of MAKECMDGOALS at this level. It
# will be handled for each of $(firmware).
-strip tidy clean dist spotless install installer:
+strip tidy clean dist spotless install installer netinstall:
endif
@@ -339,9 +341,15 @@ install:
install -m 644 com32/elflink/ldlinux/$(LDLINUX) $(INSTALLROOT)$(AUXDIR)/efi$(BITS)
endif
+ifdef EFI_BUILD
+netinstall:
+ mkdir -p $(INSTALLROOT)$(TFTPBOOT)/efi$(BITS)
+ install -m 644 $(NETINSTALLABLE) $(INSTALLROOT)$(TFTPBOOT)/efi$(BITS)
+else
netinstall: installer
mkdir -p $(INSTALLROOT)$(TFTPBOOT)
install -m 644 $(NETINSTALLABLE) $(INSTALLROOT)$(TFTPBOOT)
+endif
extbootinstall: installer
mkdir -m 755 -p $(INSTALLROOT)$(EXTLINUXDIR)
More information about the Syslinux-commits
mailing list