From: Jon Mason Date: Mon, 3 Oct 2022 00:49:59 +0000 (-0400) Subject: linux-yocto: add efi entry for machine features X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~2838 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=439f23eed94438494569f286b52e4f6c70ebac2f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git linux-yocto: add efi entry for machine features EFI has kernel features when need to be enabled for it to boot. Add the existing kernel config fragment to the kernel config if this machine feature is enabled. Signed-off-by: Jon Mason Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc index 7ea661e138d..091003ed829 100644 --- a/meta/recipes-kernel/linux/linux-yocto.inc +++ b/meta/recipes-kernel/linux/linux-yocto.inc @@ -33,6 +33,7 @@ KERNEL_LD:append:arc = " ${TOOLCHAIN_OPTIONS}" KERNEL_FEATURES:append:qemuall=" features/debug/printk.scc" +KERNEL_FEATURES:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'efi', 'cfg/efi.scc', '', d)}" KERNEL_FEATURES:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'numa', 'features/numa/numa.scc', '', d)}" KERNEL_FEATURES:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'vfat', 'cfg/fs/vfat.scc', '', d)}"