-
-
Couldn't load subscription status.
- Fork 17
Make capsule_cabinet work independently of buildsystem state #725
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
base: dasharo
Are you sure you want to change the base?
Conversation
2f8cae4 to
225254c
Compare
dc4919d to
02b92e1
Compare
Extract the coreboot config from the capsule itself, in order to be able to use the script on any coreboot capsules. Upstream-Status: Inappropriate [Dasharo downstream] Change-Id: I49f2fb91423b912d98d55ca5e0e008b483d1322c Signed-off-by: Michał Kopeć <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless I misunderstand the intend, the changes are incomplete. The script can't be used without .config in the current directory and it will mix configuration from .config and coreboot's config extracted from a capsule's payload.
|
|
||
| if [ ! -f .config ]; then | ||
| die "No '.config' file in current directory" | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Existence of .config is checked here.
|
|
||
| capsule=$1 | ||
| date=$(stat -c %w $capsule | cut -d ' ' -f 1) | ||
| vendor=$(cat .config | grep -e "CONFIG_VENDOR_.*=y" | cut -d '=' -f 1 | cut -d '_' -f 3- | awk '{ print tolower($0) }') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.config is used here.
Extract the config from the capsule itself, to avoid depending on .config existing and being up to date.
This depends on edk2 basetools, these can be taken from the edk2 build tree, or specified as an env variable.