diff options
| author | Marin Ivanov <[email protected]> | 2024-05-01 01:22:37 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2024-05-01 01:22:37 +0300 |
| commit | 3b60b431ffbb240afb54d18dcafbb8538ca358d3 (patch) | |
| tree | 5eec2bbbcb4ca1d29ee984de0069130ffd2da616 | |
| parent | 4d926ffe0efdc02ceb43b8959857072ad7ef6f16 (diff) | |
build: fix kernel path
| -rw-r--r-- | build.zig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -48,7 +48,7 @@ pub fn build(b: *Build) !void { const iso_dir = b.fmt("{?s}/iso_root", .{b.cache_root.path}); // const kernel_path = b.install_path ++ "/" ++ kernel.out_filename; // const kernel_path = b.getInstallPath(kernel.install_step.?.dest_dir, kernel.out_filename); - const kernel_path = try fs.path.join(b.allocator, &[_][]const u8{ b.install_path, kernel.out_filename }); + const kernel_path = try fs.path.join(b.allocator, &[_][]const u8{ b.install_path, "bin", kernel.out_filename }); const iso_path = b.fmt("{s}/disk.iso", .{b.exe_dir}); const iso_cmd_str = &[_][]const u8{ "/bin/sh", "-c", std.mem.concat(b.allocator, u8, &[_][]const u8{ "mkdir -p ", iso_dir, " && ", "cp ", kernel_path, " ", iso_dir, " && ", "cp src/grub.cfg ", iso_dir, " && ", "grub-mkrescue -o ", iso_path, " ", iso_dir }) catch unreachable }; |
