Use kernel.bin to make iso
This commit is contained in:
parent
176bc66f66
commit
81540ef99d
@ -61,11 +61,11 @@ pub fn build(b: *std.Build) void {
|
||||
|
||||
const iso_copy_kernel = b.addSystemCommand(&[_][]const u8{
|
||||
"cp",
|
||||
b.fmt("{s}/bin/{s}", .{ b.install_path, "kernel.elf" }),
|
||||
b.fmt("{s}/bin/{s}", .{ b.install_path, "kernel.bin" }),
|
||||
iso_dir_boot_path,
|
||||
});
|
||||
iso_copy_kernel.step.dependOn(&iso_make_dir.step);
|
||||
iso_copy_kernel.step.dependOn(kernel_step_elf);
|
||||
iso_copy_kernel.step.dependOn(kernel_step_bin);
|
||||
|
||||
const iso_copy_grubcfg = b.addSystemCommand(&[_][]const u8{
|
||||
"cp",
|
||||
|
@ -3,25 +3,12 @@ ENTRY(_start)
|
||||
SECTIONS {
|
||||
. = 2M;
|
||||
|
||||
.text : ALIGN(4K) {
|
||||
.blob : ALIGN(4K) {
|
||||
*(.multiboot)
|
||||
*(.text)
|
||||
}
|
||||
|
||||
.rodata : ALIGN(4K) {
|
||||
*(.rodata)
|
||||
}
|
||||
|
||||
.data : ALIGN(4K) {
|
||||
*(.data)
|
||||
}
|
||||
|
||||
.bss : ALIGN(4K) {
|
||||
*(COMMON)
|
||||
*(.bss)
|
||||
}
|
||||
|
||||
/DISCARD/ : {
|
||||
*(.note .note.*)
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user