Rename BOOTX64.EFI -> HOS.EFI
This commit is contained in:
parent
aa9809e0ed
commit
b9675019e7
@ -21,9 +21,9 @@ the build command.
|
||||
|
||||
To install HOS to an EFI partition, follow these steps:
|
||||
|
||||
1. Copy build/hello/BOOTX64.EFI to EFI partition EFI/HOS.EFI. For example, from Linux:
|
||||
1. Copy build/hello/HOS.EFI to EFI partition EFI/HOS.EFI. For example, from Linux:
|
||||
|
||||
sudo cp build/hello/BOOTX64.EFI /boot/efi/EFI/HOS.EFI
|
||||
sudo cp build/hello/HOS.EFI /boot/efi/EFI/HOS.EFI
|
||||
|
||||
2. Register EFI loader for HOS (one time only) with command:
|
||||
|
||||
|
12
Rsconscript
12
Rsconscript
@ -58,7 +58,7 @@ class Image < Builder
|
||||
system(*%W[mformat -i #{@target} ::])
|
||||
system(*%W[mmd -i #{@target} ::/EFI])
|
||||
system(*%W[mmd -i #{@target} ::/EFI/BOOT])
|
||||
system(*%W[mcopy -i #{@target} #{@sources.first} ::/EFI/BOOT])
|
||||
system(*%W[mcopy -i #{@target} #{@sources.first} ::/EFI/BOOT/BOOTX64.EFI])
|
||||
partition_contents = File.binread(@target)
|
||||
disk_image = empty_mb + partition_contents + empty_mb
|
||||
File.binwrite(@target, disk_image)
|
||||
@ -131,12 +131,12 @@ hello_env = env "hello", use: %w[ldc2 x86_64-w64-mingw32-gcc] do |env|
|
||||
env["LDFLAGS"] += %w[-nostdlib -Wl,-dll -shared -Wl,--subsystem,10 -e efi_main -Wl,-Map,${_TARGET}.map]
|
||||
env["LDCMD"] = %w[${LD} -o ${_TARGET} ${LDFLAGS} ${_SOURCES} ${LIBDIRPREFIX}${LIBPATH} ${LIBLINKPREFIX}${LIBS}]
|
||||
env["OBJDUMP"] = "x86_64-w64-mingw32-objdump"
|
||||
env.Program("^/BOOTX64.EFI", "${sources}")
|
||||
env.produces("^/BOOTX64.EFI", "^/BOOTX64.EFI.map")
|
||||
env.Program("^/HOS.EFI", "${sources}")
|
||||
env.produces("^/HOS.EFI", "^/HOS.EFI.map")
|
||||
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.Size("^/HOS.size", "^/HOS.EFI")
|
||||
env.Disassemble("^/HOS.txt", "^/HOS.EFI")
|
||||
env.Image("^/HOS.img", "^/HOS.EFI")
|
||||
end
|
||||
|
||||
task "run", desc: "Run HOS in QEMU" do
|
||||
|
Loading…
x
Reference in New Issue
Block a user