From: Andrew Cooper Date: Wed, 25 Dec 2024 01:49:48 +0000 (+0000) Subject: make hd.img X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c16e05f3510a3ad788f4d41e8429412cd3646ab1;p=people%2Fandrewcoop%2Fxen.git make hd.img --- diff --git a/xen/Makefile b/xen/Makefile index 2e1a925c84..43e941677d 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -648,6 +648,16 @@ cscope: $(all_sources) > cscope.files cscope -k -b -q +hd.img: xen.cfg FORCE + strip $(TARGET).efi + dd if=/dev/zero of=$@.tmp bs=1M count=16 + /sbin/mkfs.vfat $@.tmp -F 16 + mmd -i $@.tmp ::EFI ::EFI/BOOT + mcopy -i $@.tmp $(TARGET).efi ::EFI/BOOT/BOOTX64.EFI + mcopy -i $@.tmp xen.cfg ::EFI/BOOT/BOOTX64.CFG + mcopy -i $@.tmp /local/xen-test-framework.git/tests/cpuid/test-pv64-cpuid ::EFI/BOOT/DOM0 + mv $@.tmp $@ + .PHONY: _MAP _MAP: $(TARGET) $(NM) -n $(TARGET)-syms | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' > System.map diff --git a/xen/xen.cfg b/xen/xen.cfg new file mode 100644 index 0000000000..b41bbb2e5e --- /dev/null +++ b/xen/xen.cfg @@ -0,0 +1,6 @@ +[global] +default=fred + +[fred] +options=console=vga,com1 com1=115200,8n1 noreboot bootscrub=0 +kernel=dom0