Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: mikko.rapeli@linaro.org, openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH v4 1/9] poky-altcfg.conf: enable "efi" in DISTRO_FEATURES
Date: Thu, 24 Apr 2025 11:37:06 +0100	[thread overview]
Message-ID: <09ccfc3dc4a536d5712d360addadbe31556cc909.camel@linuxfoundation.org> (raw)
In-Reply-To: <20250422143501.99565-2-mikko.rapeli@linaro.org>

On Tue, 2025-04-22 at 17:34 +0300, Mikko Rapeli via lists.openembedded.org wrote:
> oe-core machines like genericarm64 already enable "efi" in
> MACHINE_FEATURES but this does not enable systemd side
> "efi" support and thus systemd does not mount ESP
> partition for example.
> 
> Enabling "efi" in systemd PACKAGECONFIG got negative comments
> in review. Also enabling systemd "efi" support via MACHINE_FEATURES
> was rejected. Thus enabling this as distro feature for "poky-altcfg".
> 
> Many HW targets come with UEFI compatible firmware by default.
> For example u-boot enables UEFI support by default on all targets.
> 
> This enables seeing UEFI firmware interfaces and data
> in userspace since "efivars" is now mounted by systemd
> to /sys/firmware/efi/efivars. Things like UEFI bootloader
> (grub, systemd-boot etc) selections and secure boot status
> can be queried from there.
> 
> Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
> ---
>  meta-poky/conf/distro/poky-altcfg.conf | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta-poky/conf/distro/poky-altcfg.conf b/meta-poky/conf/distro/poky-altcfg.conf
> index 3d64bdd1fe..e56c4f0a37 100644
> --- a/meta-poky/conf/distro/poky-altcfg.conf
> +++ b/meta-poky/conf/distro/poky-altcfg.conf
> @@ -14,4 +14,7 @@ POKY_INIT_MANAGER:poky-altcfg = "systemd"
>  # systemd isn't suitable with musl
>  POKY_INIT_MANAGER:poky-altcfg:libc-musl = "sysvinit"
>  
> +# for systemd etc UEFI support
> +DISTRO_FEATURES:append = " efi"
> +
>  require conf/distro/include/poky-distro-alt-test-config.inc

Having thought a bit about this, I think we should just add this by
default to nodistro. I'm trying to keep the delta between poky and
nodistro minimal if/where we can.

Cheers,

Richard


  reply	other threads:[~2025-04-24 10:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-22 14:34 [PATCH v4 0/9] systemd based initrd and modular kernel support Mikko Rapeli
2025-04-22 14:34 ` [PATCH v4 1/9] poky-altcfg.conf: enable "efi" in DISTRO_FEATURES Mikko Rapeli
2025-04-24 10:37   ` Richard Purdie [this message]
2025-04-22 14:34 ` [PATCH v4 2/9] kernel.bbclass: add kernel-initrd-modules meta package Mikko Rapeli
2025-04-22 14:34 ` [PATCH v4 3/9] core-image-initramfs-boot: add option to build systemd based initrd Mikko Rapeli
2025-04-22 14:34 ` [PATCH v4 4/9] core-image-initramfs-boot: don't install RRECOMMENDS to reduce size Mikko Rapeli
2025-04-22 14:34 ` [PATCH v4 5/9] core-image-initramfs-boot: install kernel-initrd-modules by default Mikko Rapeli
2025-04-22 14:34 ` [PATCH v4 6/9] oeqa selftest uki.py: add aarch64/arm test with systemd based initrd Mikko Rapeli
2025-04-22 14:34 ` [PATCH v4 7/9] image_types_wic.bbclass: capture verbose wic output by default Mikko Rapeli
2025-04-25  9:03   ` [OE-core] " Mathieu Dubois-Briand
2025-04-25  9:34     ` Mikko Rapeli
     [not found]     ` <18398604A566E972.8275@lists.openembedded.org>
2025-04-25 10:12       ` pseudo aborts on aarch64 ( Re: [OE-core] [PATCH v4 7/9] image_types_wic.bbclass: capture verbose wic output by default ) Mikko Rapeli
     [not found]       ` <1839881BF86B7FC2.2292@lists.openembedded.org>
2025-04-28  9:26         ` Mikko Rapeli
2025-04-22 14:35 ` [PATCH v4 8/9] wic bootimg-efi.py: fail build if no binaries installed Mikko Rapeli
2025-04-24 10:35   ` [OE-core] " Richard Purdie
2025-04-22 14:35 ` [PATCH v4 9/9] image_types_wic.bbclass: depend on grub-efi and systemd-boot on aarch64, systemd-boot on arm Mikko Rapeli
2025-04-24 10:35   ` [OE-core] " Richard Purdie

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=09ccfc3dc4a536d5712d360addadbe31556cc909.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=mikko.rapeli@linaro.org \
    --cc=openembedded-core@lists.openembedded.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