Skip to content

Commit e64c7a8

Browse files
committed
kernelci.build: add dtbs artifacts
Add artifacts for the device tree binaries with a list of all the files in the dtbs directory. This replaces the dtbs.json file. Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
1 parent aac4e1c commit e64c7a8

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

kernelci/build.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,23 +1176,16 @@ def _install_dtbs(self, verbose):
11761176

11771177
return dtb_list
11781178

1179-
def _create_dtbs_json(self, dtb_list, verbose):
1180-
dtbs_json = os.path.join(self._install_path, 'dtbs.json')
1181-
if verbose:
1182-
print("Creating {}".format(dtbs_json))
1183-
with open(dtbs_json, 'w') as json_file:
1184-
json.dump({'dtbs': sorted(dtb_list)}, json_file, indent=4)
1185-
11861179
def install(self, verbose=False):
11871180
"""Install the device trees
11881181
1189-
Install the device tree binary blobs (dtbs) and generate dtbs.json with
1190-
the list of device tree files.
1182+
Install the device tree binary blobs (dtbs) and list all the .dtb files
1183+
in artifacts.
11911184
11921185
*verbose* is whether the build output should be shown
11931186
"""
11941187
dtb_list = self._install_dtbs(verbose)
1195-
self._create_dtbs_json(dtb_list, verbose)
1188+
self._artifacts['dtbs'] = dtb_list
11961189
return super().install(verbose)
11971190

11981191

0 commit comments

Comments
 (0)