Skip to content
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

scripts: gen-uuid-reg.py: Generate string identifier for toml files #9799

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

softwarecki
Copy link
Collaborator

Extend the script that generates the uuid-registry.h file to also generate definitions containing the uuid as a string. These definitions (UUIDREG_STR_...) can be used in toml files, allowing get values from the uuid-registry.

After merge, uuid-registry.h will contain following entries:

#define _UUIDREG_dcblock { 0xb809efaf, 0x5681, 0x42b1, { 0x9e, 0xd6, 0x04, 0xbb, 0x01, 0x2d, 0xd3, 0x84 } }
#define UUIDREG_STR_DCBLOCK "b809efaf-5681-42b1-9ed6-04bb012dd384"

For example, following toml file fragment:

	[[module.entry]]
	name = "DCBLOCK"
	uuid = "B809EFAF-5681-42B1-9ED6-04BB012DD384"

will be possible to change to:

	[[module.entry]]
	name = "DCBLOCK"
	uuid = UUIDREG_STR_DCBLOCK

Require update sign.py on Zephyrs side: zephyrproject-rtos/zephyr#84615

scripts/gen-uuid-reg.py Outdated Show resolved Hide resolved
scripts/gen-uuid-reg.py Show resolved Hide resolved
Extend the script that generates the uuid-registry.h file to also generate
definitions containing the uuid as a string. These definitions
(UUIDREG_STR_...) can be used in toml files, allowing get values from the
uuid-registry.

Signed-off-by: Adrian Warecki <[email protected]>
@softwarecki
Copy link
Collaborator Author

SOFCI TEST

@softwarecki
Copy link
Collaborator Author

@kv2019i I didn't express myself clearly in the PR description. The change from Zephyr's side is not required before merging this PR. It was initially thought to be necessary for the entire functionality to work. Can we proceed with merging this PR?

@kv2019i kv2019i merged commit 40f087e into thesofproject:main Feb 7, 2025
46 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants