]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bbconfigbuild/configfragments.py: add information about enabling fragments to toolcfg...
authorAlexander Kanavin <alex@linutronix.de>
Thu, 20 Nov 2025 11:24:23 +0000 (12:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Nov 2025 17:48:50 +0000 (17:48 +0000)
The info was first added to bitbake-setup, but this is actually the
correct place to do it.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/bbconfigbuild/configfragments.py

index 6fdac33a5daa9c4b0f2bfeec37db72ff0583dd46..fe2c629d927efcad67aef115075b6465d09e56af 100644 (file)
@@ -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: