Skip to contentSkip to conversation

bbconfigbuild/configfragments.py: add information about enabling fragments to toolcfg.conf

PATCH New Alexander Kanavin 1 participant 1 message Nov 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bbconfigbuild/configfragments.py: add information about enabling fragments to toolcfg.conf

From: Alexander Kanavin <[email protected]>

The info was first added to bitbake-setup, but this is actually the correct place to do it.

---
 meta/lib/bbconfigbuild/configfragments.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta/lib/bbconfigbuild/configfragments.py +5 -1
index 6fdac33a5da..fe2c629d927 100644
@@ -115,7 +115,11 @@ class ConfigFragmentsPlugin(LayerPlugin):
     def create_conf(self, confpath):
         if not os.path.exists(confpath):
             with open(confpath, 'w') as f:
-                f.write('# Automated config file controlled by tools\n')
+                f.write("""# Automated config file controlled by tools
+#
+# Run 'bitbake-config-build enable-fragment <fragment-name>' to enable additional fragments
+# or replace built-in ones (e.g. machine/<name> or distro/<name> to change MACHINE or DISTRO).
+""")
         with open(confpath, 'r') as f:
             lines = f.read()
         if "OE_FRAGMENTS += " not in lines:
Signature · 1 line
2.39.5