From: Alexander Kanavin Date: Wed, 18 Jun 2025 09:21:01 +0000 (+0200) Subject: bitbake.conf: enable built-in fragments for MACHINE and DISTRO X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e959f916b4d2bb8af2e6a04116de9430bbde0c9f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake.conf: enable built-in fragments for MACHINE and DISTRO Please see the patch for bitbake for rationale. With this setting in place, it's possible to set OE_FRAGMENTS += "distro/poky machine/qemuarm" and bitbake will interpret that as DISTRO = "poky" MACHINE = "qemuarm" Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 54d6bebc39f..77399abce0a 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -821,7 +821,8 @@ include conf/local.conf OE_FRAGMENTS_PREFIX ?= "conf/fragments" OE_FRAGMENTS_METADATA_VARS ?= "BB_CONF_FRAGMENT_SUMMARY BB_CONF_FRAGMENT_DESCRIPTION" -addfragments ${OE_FRAGMENTS_PREFIX} OE_FRAGMENTS OE_FRAGMENTS_METADATA_VARS +OE_FRAGMENTS_BUILTIN ?= "machine:MACHINE distro:DISTRO" +addfragments ${OE_FRAGMENTS_PREFIX} OE_FRAGMENTS OE_FRAGMENTS_METADATA_VARS OE_FRAGMENTS_BUILTIN require ${@"conf/multiconfig/${BB_CURRENT_MC}.conf" if "${BB_CURRENT_MC}" != "" else ""} include conf/machine/${MACHINE}.conf