finally working oh my gash
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user