CascadeOS/zig-devicetree
A read-only Flattened Device Tree (DTB) API.
A read-only Flattened Devicetree (DTB) API.
Compatible with Devicetree Specification v0.4.
This started as a wrapper around libfdt but is now a fresh implementation.
Add the dependency to build.zig.zon
:
zig fetch --save git+https://github.com/CascadeOS/zig-devicetree
Then add the following to build.zig
:
const devicetree_dep = b.dependency("devicetree", .{});
exe.root_module.addImport("DeviceTree", devicetree_dep.module("DeviceTree"));