From 3b60b431ffbb240afb54d18dcafbb8538ca358d3 Mon Sep 17 00:00:00 2001 From: Marin Ivanov Date: Wed, 1 May 2024 01:22:37 +0300 Subject: build: fix kernel path --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 1e3d52e..648c787 100644 --- a/build.zig +++ b/build.zig @@ -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 }; -- cgit v1.2.3