builders.py: Add step to write out build properties in json format

Rather than passing all options as command line parameters, write out a
build-properties.json file. Whilst currently unused, we can over time
migrate a lot of options into this file, making the interface with the
helper code easier.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2025-09-26 17:27:50 +01:00
parent c2c4594835
commit 1552218c11

View File

@ -132,6 +132,8 @@ def create_builder_factory():
haltOnFailure=True,
name="Unpack shared repositories"))
f.addStep(steps.JSONPropertiesDownload(workerdest="build-properties.json"))
f.addStep(steps.SetPropertyFromCommand(
command=util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/getproperties.py %(prop:builddir)s/build"),
extract_fn=extract_json_props,
@ -328,6 +330,8 @@ def create_parent_builder_factory(buildername, waitname):
haltOnFailure=True,
name="Unpack shared repositories"))
factory.addStep(steps.JSONPropertiesDownload(workerdest="build-properties.json"))
factory.addStep(steps.SetPropertyFromCommand(
command=util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/getproperties.py %(prop:builddir)s/build"),
extract_fn=extract_json_props,