-
Notifications
You must be signed in to change notification settings - Fork 24
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
ci: base: enable efi in DISTRO_FEATURES #103
base: main
Are you sure you want to change the base?
Conversation
Can this be part of meta-qcom-distro layer? |
yes, it should. However our CI, currently, does not use meta-qcom-distro, as it's tested independently of any distro, with poky. |
It will also be part of the distro itself, here it is just because it is required for basic systemd EFI integration. This is just so we can validate EFI support just with this layer. |
I think it's fine as long as it is a part of the CI config (rather than being set in one of the layer's conf files). |
I've created a PR for meta-qcom-distro to enable the 'efi' DISTRO_FEATURE: qualcomm-linux/meta-qcom-distro#7 |
Thanks, we should have enabled here and there as well, at least for efi, as this directs how the integration is done with systemd. |
A bit off-topic and unrelated, but I've noticed that
|
@igoropaniuk if the systemd recipe would look at MACHINE_FEATURES, you'd get a different init system for each machine, which is why its features are under DISTRO control. I guess it would be nice to have the systemd recipe emit a warning when the selected MACHINE has efi, but the DISTRO has not. |
well, systemd recipe looks for |
@igoropaniuk I think it is a mistake, see https://git.openembedded.org/openembedded-core/diff/meta/recipes-core/systemd/systemd_232.bb?id=0a1427bf9aeeda6bee2cc0af8da4ea5fd90aef6f . Initally systemd recipe was using |
I didn't check the history to see when that was changed, but by original thinking was towards not only MACHINE_FEATURES, but also connect that when systemd-boot is set as EFI_PROVIDER, as it would be better integrated there (but in theory it could also work fine with grub, something we have to check). If it gets well integrated with both grub2 and systemd-boot, then it should really be moved back to MACHINE_FEATURES. |
As @koenkooi said, then it's really confusing. A recipe that has a behavior that depends on MACHINE_FEATURES should be MACHINE_ARCH, not generic.. i don't see how it can be otherwise. There are several places in poky where we use MACHINE_FEATURES in a ARCH package.. I don't quite get it. |
FWIW. Quick chat on OE IRC based on the discussion above:
|
Yeah, makes sense, using MACHINE_FEATURES in systemd wouldn't be a good change, so we are back to DISTRO_FEATURES. |
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
Enable efi in DISTRO_FEATURES in order to enable efi support in systemd, which provides a better integration with systemd-boot, bootctl and efi runtime support. Signed-off-by: Ricardo Salveti <[email protected]>
Enable efi in DISTRO_FEATURES in order to enable efi support in systemd, which provides a better integration with systemd-boot, bootctl and efi runtime support.