diff mbox series

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

Message ID 20251120112434.137764-1-alex.kanavin@gmail.com
State New
Headers show
Series bitbake-setup: do not write comments into toolcfg.conf | expand

Commit Message

Alexander Kanavin Nov. 20, 2025, 11:24 a.m. UTC
From: Alexander Kanavin <alex@linutronix.de>

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).

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 bin/bitbake-setup | 6 ------
 1 file changed, 6 deletions(-)
diff mbox series

Patch

diff --git a/bin/bitbake-setup b/bin/bitbake-setup
index 792f5579f..436456a47 100755
--- a/bin/bitbake-setup
+++ b/bin/bitbake-setup
@@ -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):