-
Notifications
You must be signed in to change notification settings - Fork 213
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
Refactor UEFI capsule generation #1527
Conversation
Thanks @igoropaniuk for the PR. I will check the changes and get back to you. |
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.
LGTM.
Did you try any update mechanism ?
@ichergui not really, I've verified only that cap files (with the same size as without these changes) are generated and deployed. I can test update mechanism if needed, but I haven't touched anything in the way how that capsule updates are processed in runtime |
@igoropaniuk Please do |
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.
Looks like a good start on this, thanks!
A couple of additional cleanups: the tegra-bup
bbclass can be removed with these changes, and the bup_dependency()
function reference could just be replaced with a dependency on the do_image_complete task for the initrd if the build is using a separate initrd image.
Also, the oe_make_bup_payload()
function could be moved out of image_types_tegra.bbclass
and directly into the do_compile
function of the capsules recipe, as this would be the only user of it.
@Lexmark-chad It would be good for you to review this as well, if you can |
@igoropaniuk Any update about this PR ? |
@ichergui I'm currently traveling, will get back to it when I'm back (in a week) |
Hi @igoropaniuk |
b464692
to
303960d
Compare
Hi @igoropaniuk |
303960d
to
16b1031
Compare
@ichergui I've pushed rebased version, but looks like sanity checks are still failing (and issues reported are not related to my changes):
|
Yeah, the changes for disallowing `S = "${WORKDIR}" have gone into OE-Core master... I'll try and make some time to work on that today. |
@igoropaniuk Try rebasing on master latest, should work better now. |
f14798f
to
a344f15
Compare
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.
See in-line
a344f15
to
f94dc18
Compare
Fix indentation in task definitions (use spaces instead of tabs). Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Rename variable holding Capsule install dir in the final rootfs, so it's more generic TEGRA_UEFI_CAPSULE_INSTALL_DIR and set a weak default value, so it can be adjusted if needed. Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Drop bup-payload image type from TEGRA_INITRAMFS_FSTYPES, as it's planned to generate BUP image inside UEFI capsule generation recipes. Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Drop bup-payload image type CONVERSION_CMD, as it's planned to generate BUP image inside UEFI capsule generation recipes, as suggested in [1]. [1] OE4T#1492 Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Use ${B} for storing generated capsules instead of hacking with ${DEPLOY_DIR_IMAGE}. Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Drop BUP-specific recipes and move all logic to UEFI capsule generation recipe, as suggested in [1]. [1] OE4T#1492 Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
f94dc18
to
531537d
Compare
@ichergui @madisongh @Lexmark-chad @kekiefer do you have any additional comments/objections/suggestions? thanks |
I think we're good. I'm running a couple of build tests in preparation for merging. Thanks! |
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.
LGTM. Thanks @igoropaniuk
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.
New changes look good.
Refactor UEFI capsule generation. Drop BUP-specific recipes and move all logic to UEFI capsule
generation recipe, as suggested in [1]
[1] #1492