Skip to contentSkip to conversation

bitbake-setup: do not write comments into toolcfg.conf

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake-setup: do not write comments into toolcfg.conf

From: Alexander Kanavin <[email protected]>

This is the job of bitbake-config-build, it's already placing a comment of its own into the file, and so this additional information will be added to that (in a patch to oe-core).

---
 bin/bitbake-setup | 6 ------
 1 file changed, 6 deletions(-)
bin/bitbake-setup +0 -6
index 792f5579f..436456a47 100755
@@ -259,12 +259,6 @@ def setup_bitbake_build(bitbake_config, layerdir, setupdir, thisdir, update_bb_c
     shell = "bash"
     fragments = bitbake_config.get("oe-fragments", []) + sorted(bitbake_config.get("oe-fragment-choices",{}).values())
     if fragments:
-        toolcfg_file = os.path.join(bitbake_builddir,'conf/toolcfg.conf')
-        toolcfg_comment = """# 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(toolcfg_file, 'w') as f:
-            f.write(toolcfg_comment)
         bb.process.run("{} -c '. {} && bitbake-config-build enable-fragment {}'".format(shell, init_script, " ".join(fragments)))
 
     if os.path.exists(backup_bitbake_confdir):
Signature · 1 line
2.39.5