Skip to content

scripts: xtensa-build-all: fix TGL build with customized key - #3511

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

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

Conversation

@xiulipan

Copy link
Copy Markdown
Contributor

When use MEU as sign tool, PRIVATE_KEK_OPTION should also use
MEU_PRIVATE_KEY.

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

When use MEU as sign tool, PRIVATE_KEK_OPTION should also use
MEU_PRIVATE_KEY.

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

@marc-hb marc-hb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This commit is called "fix TGL build with custom key" but people are already building TGL with custom keys! I think you missed the discussion in #3187 (comment)
I'm not blaming you: that discussion was long and confusing!

The long story short: the -k option should not be used with MEU. That's because -k would require more code in this script (not just this line) to support MEU correctly. Use -m and the new, pass-through environment variable instead as shown in #3187 (comment)

PRIVATE_KEY_OPTION='-DMEU_PRIVATE_KEY=...'  ./xtensa-build-all.sh ...

I will submit a print_usage() fix instead.

@marc-hb

marc-hb commented Oct 10, 2020 •

Copy link
Copy Markdown
Collaborator

I will submit a print_usage() fix instead.

Done in #3512

@xiulipan

xiulipan commented Oct 12, 2020 •

Copy link
Copy Markdown
Contributor Author

@marc-hb Oh, I did not notice the method you provide, but my fix here can solve the situation with different usage for key. Could you have a try? This will provide a unify method to build with custom key.

@marc-hb

marc-hb commented Oct 12, 2020 •

Copy link
Copy Markdown
Collaborator

I don't think a "unified" method using the same RIMAGE_PRIVATE_KEY name for both rimage and MEU is a good idea. I think -k was never a good idea and should be deprecated (even for rimage), see #3512 why.

@xiulipan xiulipan closed this Oct 13, 2020
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