rimage: use platform extra flags when signing LLEXT modules by lyakh · Pull Request #9509 · thesofproject/sof · GitHub
Skip to content

rimage: use platform extra flags when signing LLEXT modules#9509

Merged
lgirdwood merged 1 commit into
thesofproject:mainfrom
lyakh:llext-sign
Sep 26, 2024
Merged

rimage: use platform extra flags when signing LLEXT modules#9509
lgirdwood merged 1 commit into
thesofproject:mainfrom
lyakh:llext-sign

Conversation

@lyakh

@lyakh lyakh commented Sep 24, 2024

Copy link
Copy Markdown
Collaborator

The user can configure west to pass additional arguments to rimage for signing, we need to use them when signing LLEXT modules too.

The user can configure west to pass additional arguments to rimage
for signing, we need to use them when signing LLEXT modules too.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>

@abonislawski abonislawski 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.

It should work but will duplicate -k parameter

Before:
rimage -o drc.llext.ri -e -c rimage_config.toml -k otc_private_key_3k.pem -l -r drc.llext
After:
rimage -o drc.llext.ri -e -c rimage_config.toml -k otc_private_key_3k.pem -l -r -k otc_private_key_3k.pem -f 2.10.99 -b 1 drc.llext

@lyakh

lyakh commented Sep 25, 2024

Copy link
Copy Markdown
Collaborator Author

@abonislawski

abonislawski commented Sep 25, 2024

Copy link
Copy Markdown
Member

No issues, it doesnt matter for rimage.
I think it will be enough to just remove "-k", str(signing_key) from sign_cmd since -k will be included anyway with this commit.

@lgirdwood

Copy link
Copy Markdown
Member

@lgirdwood lgirdwood merged commit 58ec860 into thesofproject:main Sep 26, 2024
@lyakh lyakh deleted the llext-sign branch September 26, 2024 16:57
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.

4 participants