Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mikko Rapeli <mikko.rapeli@linaro.org>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH v2 01/11] systemd: enable efi support if in MACHINE_FEATURES too
Date: Mon, 24 Mar 2025 09:29:48 +0200	[thread overview]
Message-ID: <Z-EJ7EqalYachfbb@nuoska> (raw)
In-Reply-To: <d0f4460cc8338769479b0efdfbf4ed68b491fae1.camel@linuxfoundation.org>

Hi,

On Sun, Mar 23, 2025 at 10:53:59AM +0000, Richard Purdie wrote:
> On Fri, 2025-03-21 at 15:25 +0200, Mikko Rapeli via lists.openembedded.org wrote:
> > For example genericarm64 enables "efi" in MACHINE_FEATURES
> > and in u-boot. Boot without "efi" in systemd works with
> > EFI protocols but for example efivars is not mounted at
> > all so various checks fail in userspace. Fix these by
> > enabling "efi" support if it's in MACHINE_FEATURES.
> > Fixes efivars mount to /sys/firmware/efi/efivars etc.
> > 
> > Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
> > ---
> > �meta/recipes-core/systemd/systemd_257.3.bb | 1 +
> > �1 file changed, 1 insertion(+)
> > 
> > diff --git a/meta/recipes-core/systemd/systemd_257.3.bb b/meta/recipes-core/systemd/systemd_257.3.bb
> > index 64fb8fe69a..9bc4532021 100644
> > --- a/meta/recipes-core/systemd/systemd_257.3.bb
> > +++ b/meta/recipes-core/systemd/systemd_257.3.bb
> > @@ -69,6 +69,7 @@ PAM_PLUGINS = " \
> > �
> > �PACKAGECONFIG ??= " \
> > ���� ${@bb.utils.filter('DISTRO_FEATURES', 'acl audit apparmor efi ldconfig pam pni-names selinux smack polkit seccomp', d)} \
> > +��� ${@bb.utils.filter('MACHINE_FEATURES', 'efi', d)} \
> > ���� ${@bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', 'coredump elfutils', '', d)} \
> > ���� ${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'rfkill', '', d)} \
> > ���� ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xkbcommon', '', d)} \
> 
> This makes the systemd recipe machine specific which isn't currently the case.

Can we enable "efi" in DISTRO_FEATURES by default?

That would solve the issue without checking MACHINE_FEATURES in systemd recipe.

Cheers,

-Mikko


  reply	other threads:[~2025-03-24  7:30 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-21 13:25 [PATCH v2 00/11] systemd based initrd and modular kernel support Mikko Rapeli
2025-03-21 13:25 ` [PATCH v2 01/11] systemd: enable efi support if in MACHINE_FEATURES too Mikko Rapeli
2025-03-23 10:53   ` [OE-core] " Richard Purdie
2025-03-24  7:29     ` Mikko Rapeli [this message]
2025-03-24  8:50       ` Koen Kooi
2025-03-24  9:01         ` Mikko Rapeli
     [not found]     ` <182FACA25EBBEBE7.22661@lists.openembedded.org>
2025-03-24  7:43       ` Mikko Rapeli
2025-03-24  8:49         ` Richard Purdie
2025-03-24  8:53     ` Koen Kooi
2025-03-21 13:25 ` [PATCH v2 02/11] uki.bbclass: drop serial console from kernel command line Mikko Rapeli
2025-03-21 13:25 ` [PATCH v2 03/11] kernel.bbclass: add kernel-initrd-modules meta package Mikko Rapeli
2025-03-21 14:59   ` [OE-core] " Bruce Ashfield
2025-03-24  7:40     ` Mikko Rapeli
2025-03-24 12:33       ` Bruce Ashfield
2025-03-27  8:29     ` Mikko Rapeli
2025-03-21 13:25 ` [PATCH v2 04/11] core-image-initramfs-boot: add option to build systemd based initrd Mikko Rapeli
2025-03-21 13:25 ` [PATCH v2 05/11] core-image-initramfs-boot: don't install RRECOMMENDS to reduce size Mikko Rapeli
2025-03-21 13:25 ` [PATCH v2 06/11] core-image-initramfs-boot: install kernel-initrd-modules by default Mikko Rapeli
2025-03-21 13:25 ` [PATCH v2 07/11] oeqa selftest uki.py: add aarch64/arm test with systemd based initrd Mikko Rapeli
2025-03-21 13:25 ` [PATCH v2 08/11] test_efi_plugin_plain_systemd-boot: don't set console Mikko Rapeli
2025-03-21 13:25 ` [PATCH v2 09/11] image_types_wic.bbclass: capture verbose wic output by default Mikko Rapeli
2025-03-21 13:25 ` [PATCH v2 10/11] wic bootimg-efi.py: fail build if no binaries installed Mikko Rapeli
2025-03-21 13:25 ` [PATCH v2 11/11] image_types_wic.bbclass: depend on grub-efi and systemd-boot on aarch64, systemd-boot on arm Mikko Rapeli
2025-03-21 13:40   ` Patchtest results for " patchtest

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z-EJ7EqalYachfbb@nuoska \
    --to=mikko.rapeli@linaro.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox