diff options
| author | Marin Ivanov <[email protected]> | 2025-05-31 12:06:26 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2025-05-31 12:06:26 +0300 |
| commit | bcbb250c091c25e8b9cb40ae133bc9e04cec9af9 (patch) | |
| tree | 4084ddc237e08e177fc045de6b4c4d932228adec | |
| parent | 4263a0051e0545559cbcabda8bc215dd8c60d981 (diff) | |
update for zig 0.14.1
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | build.zig | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -3,3 +3,4 @@ The kernel name is "work in progress". # Insights * needs on host `apt-get install grub-pc-bin`, otherwise grub-mkrescue makes EFI-only ISO. +* host needs `mtools`, otherwise grub-mkrescue complains with "`mformat` invocation failed" @@ -34,11 +34,11 @@ pub fn build(b: *Build) !void { const kernel = b.addExecutable(.{ .name = "kernel.elf", - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .optimize = optimize, .target = kernel_target, }); - kernel.setLinkerScriptPath(.{ .path = "src/linker.ld" }); + kernel.setLinkerScript(b.path("src/linker.ld")); kernel.entry = .disabled; b.installArtifact(kernel); |
