Skip to content

dist/tools/riotboot_gen_hdr: add JSON mode #21511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025

Conversation

benpicco
Copy link
Contributor

Contribution description

For parsing the output of the genhdr command, a JSON mode will make things easier.

Testing procedure

JSON mode

$ genhdr show --json slot0.1748336784.bin 
{
	"version": 1748336786,
	"address": 4352,
	"valid": true
}

old mode

$ genhdr show slot0.1748336784.bin        
version: 1748336786
address: 0x1100
checksum: valid

Issues/PRs references

@github-actions github-actions bot added the Area: tools Area: Supplementary tools label May 27, 2025
@benpicco benpicco added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels May 27, 2025
@benpicco benpicco requested a review from maribu May 27, 2025 09:20
@riot-ci
Copy link

riot-ci commented May 27, 2025

Murdock results

✔️ PASSED

bf033ee dist/tools/riotboot_gen_hdr: add JSON mode

Success Failures Total Runtime
1 0 1 01m:24s

Artifacts

@maribu
Copy link
Member

maribu commented May 27, 2025

It's a pity that there is no doc present that you could extend. Do you feel like adding a README.md?

@benpicco benpicco force-pushed the riotboot_gen_hdr-json branch from 47ab59e to bf033ee Compare May 27, 2025 09:27
@benpicco benpicco added this pull request to the merge queue Jun 4, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 4, 2025
@benpicco benpicco added this pull request to the merge queue Jun 11, 2025
Merged via the queue into RIOT-OS:master with commit 80ea84d Jun 11, 2025
26 checks passed
@benpicco benpicco deleted the riotboot_gen_hdr-json branch June 11, 2025 14:54
@Teufelchen1 Teufelchen1 added this to the Release 2025.07 milestone Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants