From f30edb5c1447a8daf3ea40177fcab77efaed8fd9 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Wed, 3 Aug 2016 14:40:15 -0400 Subject: [PATCH] efi: Make it possible to build EFI images. Signed-off-by: Konrad Rzeszutek Wilk --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Makefile b/Makefile index 9ed9262..9f09e98 100644 --- a/Makefile +++ b/Makefile @@ -315,6 +315,27 @@ xtt-common: $(NEB_TARGETS) $(INSTALL_DATA) syslinux/com32/mboot/*.c32 dist/common/ $(INSTALL_DATA) syslinux/com32/menu/*.c32 dist/common/ +.PHONY: xtt-efi +xtt-efi: + $(INSTALL_DIR) dist/efi/EFI/BOOT/ + $(INSTALL_DATA) dist/common/* dist/efi/EFI/BOOT/ + rm -f dist/efi/EFI/BOOT/*.c32 + rm -f dist/efi/EFI/BOOT/xen.gz + $(INSTALL_DATA) boot/efi/* dist/efi/EFI/BOOT + dd if=/dev/zero bs=1M count=128 of=./dist/efiboot.img + mkfs.vfat -n "XTT-UEFI-ISO" dist/efiboot.img + mkdir -p dist/loop + sudo mount -t vfat -o loop dist/efiboot.img dist/loop + sudo cp -Rf dist/efi/* dist/loop; + sudo umount dist/loop + mv dist/efiboot.img dist/iso + mkisofs -boot-info-table -no-emul-boot \ + -b isolinux/isolinux.bin \ + -c isolinux/boot.cat -boot-load-size 4 -boot-info-table \ + -eltorito-alt-boot -e efiboot.img -no-emul-boot \ + -o dist/root_image-uefi.iso dist/iso + mv dist/iso/efiboot.img dist/ + .PHONY: xtt-iso xtt-iso: xtt-common $(INSTALL_DIR) dist/iso/isolinux/ -- 2.39.5