Skip to contentSkip to conversation

Adapt to new default feature handling

PATCH In review Paul Barker 1 participant 5 messages Mar 28 – Mar 31

lore
Share & tools
lore
#1 lore raw

PATCH 1/3 genericx86-common: Use append with MACHINE_FEATURES

In reply to Paul Barker

We should modify MACHINE_FEATURES using :append instead of += to preserve the weakly assigned defaults.

---
 meta-yocto-bsp/conf/machine/include/genericx86-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/include/genericx86-common.inc +1 -1
index 95d9e175fc4c..e10b69ca75cd 100644
@@ -1,6 +1,6 @@
 include conf/machine/include/x86/x86-base.inc
 require conf/machine/include/x86/qemuboot-x86.inc
-MACHINE_FEATURES += "wifi efi pcbios"
+MACHINE_FEATURES:append = "wifi efi pcbios"
 
 PREFERRED_VERSION_linux-yocto ?= "6.18%"
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
Signature · 1 line
2.43.0
#2 lore raw

PATCH 2/3 genericarm64: Use MACHINE_FEATURES_DEFAULT

In reply to Paul Barker

In openembedded-core, MACHINE_FEATURES_BACKFILL will be replaced to allow opting out of any default MACHINE_FEATURES. To adapt to this, we need to use MACHINE_FEATURES_DEFAULT to pick up the features that were previously added via backfill.

We can also drop rtc and qemu-usermode from our list as they are included in the backfill list (before the change in openembedded-core) and the new defaults (after the change).

---
 meta-yocto-bsp/conf/machine/genericarm64.conf | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/genericarm64.conf +4 -1
index 2b1ce4bdd02b..02a2219ce5b5 100644
@@ -8,7 +8,10 @@ require conf/machine/include/arm/arch-armv8a.inc
 # Arm Base System Architecture says v8.0+ is allowed, but FEAT_CRC32 is required
 DEFAULTTUNE = "armv8a-crc"
 
-MACHINE_FEATURES = "acpi alsa bluetooth efi keyboard pci qemu-usermode rtc screen usbhost vfat wifi"
+MACHINE_FEATURES = " \
+    ${MACHINE_FEATURES_DEFAULT} \
+    acpi alsa bluetooth efi keyboard pci screen usbhost vfat wifi \
+    "
 
 KERNEL_IMAGETYPE = "Image"
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
Signature · 1 line
2.43.0
#3 lore raw

PATCH 3/3 beaglebone-yocto: Use MACHINE_FEATURES_DEFAULT

In reply to Paul Barker

In openembedded-core, MACHINE_FEATURES_BACKFILL will be replaced to allow opting out of any default MACHINE_FEATURES. To adapt to this, we need to use MACHINE_FEATURES_DEFAULT to pick up the features that were previously added via backfill.

---
 meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +1 -1
index b76edffa8fa3..713813a405f5 100644
@@ -32,7 +32,7 @@ SPL_BINARY = "MLO"
 UBOOT_SUFFIX = "img"
 UBOOT_MACHINE = "am335x_evm_defconfig"
 
-MACHINE_FEATURES = "usbgadget usbhost vfat alsa"
+MACHINE_FEATURES = "${MACHINE_FEATURES_DEFAULT} usbgadget usbhost vfat alsa"
 
 IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} ${SPL_BINARY} ${KERNEL_IMAGETYPE} ${DTB_FILES}"
 
Signature · 1 line
2.43.0
#0 lore raw

cover Adapt to new default feature handling

These changes adapt meta-yocto-bsp to the upcoming changes in how default distro and machine features are set. The intention is that this series is applied to meta-yocto *before* changes to openembeded-core, and the changes should be safe to apply in that order.

---
Paul Barker (3):
genericx86-common: Use append with MACHINE_FEATURES
genericarm64: Use MACHINE_FEATURES_DEFAULT
beaglebone-yocto: Use MACHINE_FEATURES_DEFAULT

 meta-yocto-bsp/conf/machine/beaglebone-yocto.conf         | 2 +-
 meta-yocto-bsp/conf/machine/genericarm64.conf             | 5 ++++-
 meta-yocto-bsp/conf/machine/include/genericx86-common.inc | 2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

---
base-commit: ac300baea7314ea3c80f2330b2a993f729f32150
change-id: 20260328-default-features-e3c7a5493fda

Best regards,

Signature · 1 line
Paul Barker
#4 lore raw
Quoted 10 lines · Paul Barker

These changes adapt meta-yocto-bsp to the upcoming changes in how default distro and machine features are set. The intention is that this series is applied to meta-yocto *before* changes to openembeded-core, and the changes should be safe to apply in that order.

---
Paul Barker (3):
genericx86-common: Use append with MACHINE_FEATURES
genericarm64: Use MACHINE_FEATURES_DEFAULT
beaglebone-yocto: Use MACHINE_FEATURES_DEFAULT

Please drop these, they should no longer be needed with v2 of the openembeded-core patches to support opt-out of any default machine and distro features [1].

[1]: https://patch.msgid.link/[email protected]

Thanks,

Signature · 1 line
Paul Barker