Skip to content

modules: toml: Use values from uuid-registry in toml files - #9861

Merged
lgirdwood merged 6 commits into
thesofproject:mainfrom
softwarecki:uuid-toml
Feb 27, 2025
Merged

lgirdwood merged 6 commits into
thesofproject:mainfrom
softwarecki:uuid-toml

Conversation

@softwarecki

Copy link
Copy Markdown
Collaborator

Add missing uuids entries for brngup and cold modules in the uuid-registry.txt file.

Instruct the toml file preprocessor to also use the definitions from the uuid-registry.h file. This will allow the values ​​placed in the uuid-registry to be used in toml files.

Separate the sof_llext_write_uuids function into a new file, llext_write_uuids.cmake. Add support for lowercase uuids. Fix invalid
escape before -. Retrieve the identifiers from a preprocessed rimage_config.toml file, where the uuids names have been replaced with the actual identifiers. To enable this, run the created script after building the module.

In all preprocessed toml files, replace uuid values with their corresponding identifiers from the uuid-registry.

Change the identifier defined in the code to the one retrieved from the uuid-registry.

Add missing uuids entries for brngup and cold modules in the
uuid-registry.txt file.

Signed-off-by: Adrian Warecki <[email protected]>
Instruct the toml file preprocessor to also use the definitions from the
uuid-registry.h file. This will allow the values ​​placed in the
uuid-registry to be used in toml files.

Signed-off-by: Adrian Warecki <[email protected]>
Separate the sof_llext_write_uuids function into a new file,
llext_write_uuids.cmake. Add support for lowercase uuids. Fix invalid
escape before -. Retrieve the identifiers from a preprocessed
rimage_config.toml file, where the uuids names have been replaced with
the actual identifiers. To enable this, run the script after building
the module.

Signed-off-by: Adrian Warecki <[email protected]>
In all preprocessed toml files, replace uuid values with their
corresponding identifiers from the uuid-registry.

Signed-off-by: Adrian Warecki <[email protected]>
Change the identifier defined in the code to the one retrieved from the
uuid-registry.

Signed-off-by: Adrian Warecki <[email protected]>
Change the identifiers defined in the code to the one retrieved from the
uuid-registry.

Signed-off-by: Adrian Warecki <[email protected]>

@marcinszkudlinski marcinszkudlinski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Removing repetitions of magic UUIDs is always welcome

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice !

@lgirdwood

Copy link
Copy Markdown
Member

@lgirdwood
lgirdwood merged commit 194435d into thesofproject:main Feb 27, 2025
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