]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake.conf: add an addfragments directive for oe-core and dependent layers
authorAlexander Kanavin <alex@linutronix.de>
Wed, 11 Dec 2024 13:46:29 +0000 (14:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Dec 2024 11:10:48 +0000 (11:10 +0000)
Please see the patch to bitbake for syntax and implementation details.

The path prefix to fragments is in its own variable so it doesn't have
to be hardcoded into tools.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index 1d2c2e0022b4ff8ad9299e9b466936eca3ea777b..0ed0766cd2f6c505cb5024a8cc1f0778b645f4ee 100644 (file)
@@ -837,6 +837,9 @@ include conf/documentation.conf
 include conf/licenses.conf
 require conf/sanity.conf
 include conf/bblock.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
 
 ##################################################################
 # Weak variables (usually to retain backwards compatibility)