Rename hos.img -> HOS.img
This commit is contained in:
parent
743cf9ffef
commit
93763917c1
@ -118,13 +118,13 @@ hello_env = env "hello", use: %w[ldc2 x86_64-w64-mingw32-gcc] do |env|
|
||||
env["SIZE"] = "x86_64-w64-mingw32-size"
|
||||
env.Size("^/BOOTX64.size", "^/BOOTX64.EFI")
|
||||
env.Disassemble("^/BOOTX64.txt", "^/BOOTX64.EFI")
|
||||
env.Image("^/hos.img", "^/BOOTX64.EFI")
|
||||
env.Image("^/HOS.img", "^/BOOTX64.EFI")
|
||||
end
|
||||
|
||||
task "run", desc: "Run HOS in QEMU" do
|
||||
Dir.mktmpdir do |tmpdir|
|
||||
img = hello_env.expand("^/hos.img")
|
||||
img = hello_env.expand("^/HOS.img")
|
||||
FileUtils.cp(img, tmpdir)
|
||||
sh %W[qemu-system-x86_64 -bios OVMF.fd -drive file=#{tmpdir}/hos.img,format=raw -device qemu-xhci -device usb-tablet]
|
||||
sh %W[qemu-system-x86_64 -bios OVMF.fd -drive file=#{tmpdir}/HOS.img,format=raw -device qemu-xhci -device usb-tablet]
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user