Skip to content

Commit 1d667b1

Browse files
committed
support setting part GUID
1 parent f7f9e3d commit 1d667b1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/BuildInterface.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ const ContentWriter = struct {
185185
if (part.name) |name| {
186186
try cw.code.print(" name \"{f}\"\n", .{std.zig.fmtString(name)});
187187
}
188+
if (part.part_guid) |pg| {
189+
try cw.code.print(" guid \"{s}\"", .{&pg});
190+
}
188191
if (part.offset) |offset| {
189192
try cw.code.print(" offset {d}\n", .{offset});
190193
}
@@ -416,6 +419,7 @@ pub const GptPartTable = struct {
416419
guid: [36]u8,
417420
},
418421
name: ?[]const u8 = null,
422+
part_guid: ?[36]u8 = null,
419423
size: ?u64 = null,
420424
offset: ?u64 = null,
421425
data: Content,

0 commit comments

Comments
 (0)