aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-07-12 10:03:45 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-07-12 10:03:45 +0100
commit6ff0a531eaec6b11843df9b9393ebf8fc0f171f4 (patch)
tree848dccc32d97f1cae3eee92433d4f1d2bbad9577 /Makefile
parenta01ef74f1a299869e165890b6cadcea4b032e1d9 (diff)
downloadsyslinux-6ff0a531eaec6b11843df9b9393ebf8fc0f171f4.tar.gz
syslinux-6ff0a531eaec6b11843df9b9393ebf8fc0f171f4.tar.xz
syslinux-6ff0a531eaec6b11843df9b9393ebf8fc0f171f4.zip
Makefile: add netinstall target for efi
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0f85393a..a9b515c3 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)