Skip to content
allyourcodebasePublic

About

openocd built with zig build system

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI

openocd

This is openocd, packaged for Zig.

Usage

Safe builds are triggering ubsan, so fast/small needs to be used.

To use the binary directly you can just do:

zig build -Doptimize=fast run -- -f interface/cmsis-dap.cfg -f target/rp2350.cfg

To use in build.zig.zon you first need to add it via:

zig fetch --save git+https://github.com/allyourcodebase/openocd.git

And after that you can just use the openocd artifact and tcl named lazy path in your build.zig with:

const openocd_dep = b.dependency("openocd", .{
    .optimize = .fast,
});
const openocd_run = b.addRunArtifact(openocd_dep.artifact("openocd"));
openocd_run.addArg("-s");
openocd_run.addDirectoryArg(openocd_dep.namedLazyPath("tcl"));

About

openocd built with zig build system

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages