Mercurial > hg > Members > taiki > EFITest
changeset 2:08b78c2f55c6
add hgignore file. fix Makefile
author | taiki |
---|---|
date | Wed, 26 Mar 2014 00:51:22 +0900 |
parents | 259b5f0e03ba |
children | a2c1382b25ad |
files | Makefile |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Tue Mar 26 17:51:58 2013 +0900 +++ b/Makefile Wed Mar 26 00:51:22 2014 +0900 @@ -21,6 +21,9 @@ bootx64.efi: $(OBJS) +exec: + qemu-kvm -s -L ovmf -bios ovmf/OVMF.fd -hdb disk/disk.qcow2 + %.efi: %.o $(LD) $(LDFLAGS) $^ -o $@ $(EFI_LIBS) objcopy -j .text -j .sdata -j .data \ @@ -28,6 +31,13 @@ -j .rela -j .reloc \ --target=efi-app-$(ARCH) $@ strip $@ + modprobe nbd + qemu-nbd -c /dev/nbd0 disk/disk.qow2 + mount /dev/nbd0 /mnt/nbd + cp bootx64.efi /mnt/nbd/EFI/BOOT/ + umount /mnt/nbd + qemu-nbd -d /dev/nbd0 + rmmod nbd clean: rm -f $(TARGET) $(OBJS)