diff options
Diffstat (limited to 'meta/classes/toaster.bbclass')
-rw-r--r-- | meta/classes/toaster.bbclass | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass index 90ea563809..972efb94e4 100644 --- a/meta/classes/toaster.bbclass +++ b/meta/classes/toaster.bbclass | |||
@@ -288,15 +288,22 @@ python toaster_buildhistory_dump() { | |||
288 | images[target][dependsname] = {'size': 0, 'depends' : []} | 288 | images[target][dependsname] = {'size': 0, 'depends' : []} |
289 | images[target][pname]['depends'].append((dependsname, deptype)) | 289 | images[target][pname]['depends'].append((dependsname, deptype)) |
290 | 290 | ||
291 | with open("%s/files-in-image.txt" % installed_img_path, "r") as fin: | 291 | # files-in-image.txt is only generated if an image file is created, |
292 | for line in fin: | 292 | # so the file entries ('syms', 'dirs', 'files') for a target will be |
293 | lc = [ x for x in line.strip().split(" ") if len(x) > 0 ] | 293 | # empty for rootfs builds and other "image" tasks which don't |
294 | if lc[0].startswith("l"): | 294 | # produce image files |
295 | files[target]['syms'].append(lc) | 295 | # (e.g. "bitbake core-image-minimal -c populate_sdk") |
296 | elif lc[0].startswith("d"): | 296 | files_in_image_path = "%s/files-in-image.txt" % installed_img_path |
297 | files[target]['dirs'].append(lc) | 297 | if os.path.exists(files_in_image_path): |
298 | else: | 298 | with open(files_in_image_path, "r") as fin: |
299 | files[target]['files'].append(lc) | 299 | for line in fin: |
300 | lc = [ x for x in line.strip().split(" ") if len(x) > 0 ] | ||
301 | if lc[0].startswith("l"): | ||
302 | files[target]['syms'].append(lc) | ||
303 | elif lc[0].startswith("d"): | ||
304 | files[target]['dirs'].append(lc) | ||
305 | else: | ||
306 | files[target]['files'].append(lc) | ||
300 | 307 | ||
301 | for pname in images[target]: | 308 | for pname in images[target]: |
302 | if not pname in allpkgs: | 309 | if not pname in allpkgs: |