From 00c2c0be5ead435601a21a676401674b7045f6f0 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Tue, 12 Jul 2016 15:54:48 -0700 Subject: bitbake: toaster: improve scan for SDK artifacts SDK artifacts were previously picked up by toaster.bbclass and notified to buildinfohelper (via toasterui). The artifacts were then added to the Build object, so that it wasn't clear which artifact went with which target; we were also unable to attach SDK artifacts to a Build if they had already been attached to a previous build. Now, toaster.bbclass just notifies the TOOLCHAIN_OUTPUTNAME when a populate_sdk* target completes. The scan is moved to buildinfohelper, where we search the SDK deploy directory for files matching TOOLCHAIN_OUTPUTNAME and attach them to targets (not builds). If an SDK file is not produced by a target, we now look for a similar, previously-run target which did produce artifacts. If there is one, we clone the SDK artifacts from that target onto the current one. This all means that we can show SDK artifacts by target, and should always get artifacts associated with a target, regardless of whether it really build them. This requires an additional model, TargetSDKFile, which tracks the size and path of SDK artifact files with respect to Target objects. [YOCTO #8556] (Bitbake rev: 5e650c611605507e1e0d1588cd5eb6535c2d34fc) Signed-off-by: Elliot Smith Signed-off-by: bavery Signed-off-by: Richard Purdie --- .../toastergui/templates/builddashboard.html | 64 ++++++++++++++-------- 1 file changed, 41 insertions(+), 23 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates') diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html index f6d62b9951..e1bde21e99 100644 --- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html +++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html @@ -80,29 +80,30 @@
{{target.npkg}}
Total package size
{{target.pkgsz|filtered_filesizeformat}}
- {% if target.targetHasNoImages %} - -
-
-
-

- This build did not create any image files -

-

- This is probably because valid image and license manifest - files from a previous build already exist in your - build/tmp/deploy - directory. You can - also view the - license manifest information in Toaster. -

-
-
+ + {% if target.targetHasNoImages %} +
+
+
+

+ This build did not create any image files +

+

+ This is probably because valid image and license manifest + files from a previous build already exist in your + build/tmp/deploy + directory. You can + also view the + license manifest information in Toaster. +

- {% else %} +
+
+ {% endif %} + {% if not target.targetHasNoImages %} +
- License manifest
@@ -129,15 +130,32 @@
    - {% for artifact in target.target_artifacts|dictsort:"basename" %} + {% for artifact in target.target_kernel_artifacts|dictsort:"basename" %}
  • - {{artifact.basename}} + {{artifact.basename}} ({{artifact.file_size|filtered_filesizeformat}})
  • {% endfor %}
-
+ + {% endif %} + {% if target.target_sdk_artifacts_count > 0 %} +
+
+ SDK artifacts +
+
+
    + {% for artifact in target.target_sdk_artifacts|dictsort:"basename" %} +
  • + {{artifact.basename}} + ({{artifact.file_size|filtered_filesizeformat}}) +
  • + {% endfor %} +
+
+
{% endif %}
{% endif %} -- cgit v1.2.3-54-g00ecf