summaryrefslogtreecommitdiffstats
path: root/src/arch/x86
diff options
context:
space:
mode:
authorMichael Brown2015-12-06 00:54:10 +0100
committerMichael Brown2015-12-07 14:08:22 +0100
commit7f65a08f3e2606a5102fb68acf6ccf5fc283ecb6 (patch)
tree714de0295e7977592c187e1c94b2172f8d8b3396 /src/arch/x86
parent[bitops] Provide BIT_QWORD_PTR() (diff)
downloadipxe-7f65a08f3e2606a5102fb68acf6ccf5fc283ecb6.tar.gz
ipxe-7f65a08f3e2606a5102fb68acf6ccf5fc283ecb6.tar.xz
ipxe-7f65a08f3e2606a5102fb68acf6ccf5fc283ecb6.zip
[efi] Add %.usb target for building EFI-bootable USB (or other) disk images
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/Makefile.efi4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/x86/Makefile.efi b/src/arch/x86/Makefile.efi
index f73bc7d5d..c4bc2308c 100644
--- a/src/arch/x86/Makefile.efi
+++ b/src/arch/x86/Makefile.efi
@@ -40,3 +40,7 @@ $(BIN)/%.efirom : $(BIN)/%.efidrv $(EFIROM)
$(BIN)/efidrv.cab : $(BIN)/alldrv.efis # $(ALL_drv.efi) is not yet defined
$(QM)$(ECHO) " [CAB] $@"
$(Q)$(LCAB) -n -q $(ALL_drv.efi) $@
+
+$(BIN)/%.usb : $(BIN)/%.efi
+ $(QM)$(ECHO) " [GENEFIDSK] $@"
+ $(Q)bash util/genefidsk -o $@ -b $(EFI_BOOT_FILE) $<