Skip to content

cmake: enable CMake option to set key used for rimage - #1239

Closed
xiulipan wants to merge 1 commit into
thesofproject:masterfrom
xiulipan:pr/rimagekey
Closed

xiulipan wants to merge 1 commit into
thesofproject:masterfrom
xiulipan:pr/rimagekey

Conversation

@xiulipan

@xiulipan xiulipan commented Apr 9, 2019

Copy link
Copy Markdown
Contributor

set SOF_RIMAGE_KEY in cmake cmd or as an ENV variable will override the
cmake configure to a specific key.

Signed-off-by: Pan Xiuli xiuli.pan@linux.intel.com

set SOF_RIMAGE_KEY in cmake cmd or as an ENV variable will override the
cmake configure to a specific key.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
@xiulipan
xiulipan requested a review from jajanusz as a code owner April 9, 2019 06:54
@xiulipan

xiulipan commented Apr 9, 2019

Copy link
Copy Markdown
Contributor Author

@plbossart
As some guide from
https://thesofproject.github.io/latest/developer_guides/cmake.html# (will update this if this PR is accepted)

The SOF_RIMAGE_KEY will be accept as CMake option or ENV. The ENV will override the CMake option.
To specific a key to be used, you need to re-run cmake every time. This is some makefile level config it will last unless you rerun cmake.

Will have another PR to override the rimage itself to accept the key from ENV.

CMake config part for #1238

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

Idea is good and feature is needed, I just have minor concerns regarding conventions

USES_TERMINAL
)
else()
if(NOT DEFINED ENV{SOF_RIMAGE_KEY})

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.

Please don't use env variables. I know they may look handy but it makes harder to figure out what comes from where. Also other params are not settable this way, so if we decide to support env variables we would have to do it for all variables for consistency.

)
else()
if(NOT DEFINED ENV{SOF_RIMAGE_KEY})
if(NOT DEFINED SOF_RIMAGE_KEY)

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.

I think it should be just RIMAGE_KEY, other variables are named without SOF_ prefix

@xiulipan

Copy link
Copy Markdown
Contributor Author

@jajanusz I would like to merge RIMAGE_KEY with the MEU_KEY as a SIGNING_KEY
@plbossart I will work on this and add scripts update as you have discussed in #1240

@jajanusz

Copy link
Copy Markdown
Contributor

@xiulipan I don't know if these 2 values should be merged, is there some use case when you would use 1 key for rimage and another for meu?
Regarding scripts I think there is no need to adding something, @plbossart already added support for key variable. Please take a look at #1248

@xiulipan

Copy link
Copy Markdown
Contributor Author

@jajanusz I think I can close this one as there is #1248

@xiulipan xiulipan closed this Apr 10, 2019
@thesofproject thesofproject deleted a comment from sofci Apr 10, 2019
@xiulipan
xiulipan deleted the pr/rimagekey branch September 19, 2019 09:32
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.

2 participants