Skip to content

Conversation

@Grazfather
Copy link
Collaborator

@Grazfather Grazfather commented Jan 27, 2026

  • Don't generate json anymore, instead generate a zig file and use that directly in sorcer[cli]
  • Add a cli that can generate all the output files. This is a lot simpler than regz, but basically just wraps it.
    • Also provides a way to list all targets!
  • Add a README
@Grazfather Grazfather requested a review from mattnite January 27, 2026 11:42
@Grazfather Grazfather marked this pull request as draft January 27, 2026 11:47
@Grazfather Grazfather marked this pull request as ready for review January 28, 2026 18:55
@Grazfather
Copy link
Collaborator Author

Pushed a change to only list chips, since that's the granularity at which we generate SVDs, so basically keeping this as an regz-generator and not a 'target lister'

const mb = MicroBuild.init(b, mz_dep) orelse return;
const register_schemas = get_register_schemas(b, mb) catch @panic("OOM");
const write_files = b.addWriteFiles();
const register_schema = write_files.add("register_schemas.json", std.json.Stringify.valueAlloc(b.allocator, register_schemas, .{}) catch @panic("OOM"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still want the register schema data to be a runtime file data instead of compile-time, at least for the GUI.

Copy link
Contributor

@mattnite mattnite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed my mind, LGTM

@mattnite mattnite merged commit ec5cf62 into main Jan 31, 2026
56 checks passed
@mattnite mattnite deleted the sorcerer-cli branch January 31, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants