diff mbox series

[yocto-autobuilder-helper,2/2] run-config: log the contents of bblayers.conf after edits

Message ID 20240207121541.1720874-2-ross.burton@arm.com
State New
Headers show
Series [yocto-autobuilder-helper,1/2] run-config: generalise auto.conf logging and only show when changed | expand

Commit Message

Ross Burton Feb. 7, 2024, 12:15 p.m. UTC
From: Ross Burton <ross.burton@arm.com>

This is useful when using large sets of layers to
verify that the right layers have been added in
the right order.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 scripts/run-config | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/scripts/run-config b/scripts/run-config
index 1c3fb45..a9bb667 100755
--- a/scripts/run-config
+++ b/scripts/run-config
@@ -253,6 +253,7 @@  def handle_stepnum(stepnum):
     elif args.stepname == "add-layers":
         for layer in layers:
             bitbakecmd(args.builddir, "bitbake-layers add-layer %s" % layer, report, stepnum, args.stepname)
+        log_file_contents(args.builddir + "/conf/bblayers.conf", args.builddir, stepnum, args.stepname)
 
     flush()
 
@@ -308,6 +309,7 @@  def handle_stepnum(stepnum):
         # Remove any layers we added in a reverse order
         for layer in reversed(layers):
             bitbakecmd(args.builddir, "bitbake-layers remove-layer %s" % layer, report, stepnum, args.stepname)
+        log_file_contents(args.builddir + "/conf/bblayers.conf", args.builddir, stepnum, args.stepname)
 
     if not jcfg:
         sys.exit(finalret)