Skip to content

Commit

Permalink
Add microzig.config.board_name (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
marnix authored Feb 2, 2025
1 parent ee5a0af commit 520f370
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ pub fn MicroBuild(port_select: PortSelect) type {

config.addOption([]const u8, "cpu_name", zig_target.result.cpu.model.name);
config.addOption([]const u8, "chip_name", target.chip.name);
config.addOption(?[]const u8, "board_name", if (maybe_board) |board| board.name else null);
config.addOption(usize, "end_of_stack", first_ram.offset + first_ram.length);

const core_mod = b.createModule(.{
Expand Down

0 comments on commit 520f370

Please sign in to comment.