diff mbox series

[2/3] bitbake.conf: add an addfragments directive for oe-core and dependent layers

Message ID 20241211134630.2685983-2-alex.kanavin@gmail.com
State Accepted, archived
Commit 5bdbabd7b5d244a44c33065b04dd76dad76888a8
Headers show
Series [1/3] bitbake-config-build: add an alias to bitbake-layers intended for managing specific local configs | expand

Commit Message

Alexander Kanavin Dec. 11, 2024, 1:46 p.m. UTC
From: Alexander Kanavin <alex@linutronix.de>

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>
---
 meta/conf/bitbake.conf | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 1d2c2e0022b..0ed0766cd2f 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -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)