aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index a7a9ee2..d246e47 100644
--- a/build.zig
+++ b/build.zig
@@ -49,7 +49,7 @@ pub fn build(b: *Build) !void {
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, "/boot/grub", " && ", "cp ", kernel_path, " ", iso_dir, "/boot", " && ", "cp src/grub.cfg ", iso_dir, "/boot/grub", " && ", "grub-mkrescue -o ", iso_path, " ", iso_dir }) catch unreachable };
+ const iso_cmd_str = &[_][]const u8{ "/bin/sh", "-c", std.mem.concat(b.allocator, u8, &[_][]const u8{ "mkdir -p ", iso_dir, "/boot/grub", " && ", "cp ", kernel_path, " ", iso_dir, "/boot", " && ", "cp src/boot/grub.cfg ", iso_dir, "/boot/grub", " && ", "grub-mkrescue -o ", iso_path, " ", iso_dir }) catch unreachable };
const iso_cmd = b.addSystemCommand(iso_cmd_str);
iso_cmd.step.dependOn(kernel_step);