finally working oh my gash

This commit is contained in:
Filipriec
2026-04-13 09:35:15 +02:00
parent bee9777a4b
commit e0b3573be9
4 changed files with 42 additions and 12 deletions

View File

@@ -4,7 +4,7 @@ pub fn build(b: *std.Build) void {
const target = b.resolveTargetQuery(.{
.cpu_arch = .thumb,
.os_tag = .freestanding,
.abi = .eabi,
.abi = .eabihf,
.cpu_model = .{ .explicit = &std.Target.arm.cpu.cortex_m4 },
});
@@ -29,6 +29,10 @@ pub fn build(b: *std.Build) void {
.root_module = tiva_module,
});
const bin = elf.addObjCopy(.{ .format = .bin });
const install_bin = b.addInstallBinFile(bin.getOutput(), "tiva-app.bin");
b.getInstallStep().dependOn(&install_bin.step);
elf.root_module.strip = true;
elf.root_module.omit_frame_pointer = true;
elf.root_module.unwind_tables = .none;