]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
make hd.img
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 25 Dec 2024 01:49:48 +0000 (01:49 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 6 Jan 2025 14:19:10 +0000 (14:19 +0000)
xen/Makefile
xen/xen.cfg [new file with mode: 0644]

index 2e1a925c8417116ae24af04c6d6b406ca5e63202..43e941677d7437ce3a46ec8b5dd1979a5bfa5497 100644 (file)
@@ -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 (file)
index 0000000..b41bbb2
--- /dev/null
@@ -0,0 +1,6 @@
+[global]
+default=fred
+
+[fred]
+options=console=vga,com1 com1=115200,8n1 noreboot bootscrub=0
+kernel=dom0