mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
bitbake: toaster: display message if no images are generated
Display message if no images are generated for a target. This commit was amended to have more conditions for displaying the message. [YOCTO #6094] (Bitbake rev: ac1911eb857f4759ed085c8a4fc4b47cefafcd7a) Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
457091dc56
commit
fee3a88695
@@ -83,6 +83,19 @@
|
|||||||
<dd><a href="{% url 'target' build.pk target.target.pk %}">{{target.npkg}}</a></dd>
|
<dd><a href="{% url 'target' build.pk target.target.pk %}">{{target.npkg}}</a></dd>
|
||||||
<dt>Total package size</dt>
|
<dt>Total package size</dt>
|
||||||
<dd>{{target.pkgsz|filtered_filesizeformat}}</dd>
|
<dd>{{target.pkgsz|filtered_filesizeformat}}</dd>
|
||||||
|
{% if target.targetHasNoImages %}
|
||||||
|
<div class="alert alert-info">
|
||||||
|
<p>
|
||||||
|
<b>This build did not create any image files</b>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
This is probably because valid image and license manifest
|
||||||
|
files from a previous build already exist in your
|
||||||
|
.../poky/build/tmp/deploy directory. You can also <b>view the
|
||||||
|
license manifest information</b> in Toaster.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
<dt>
|
<dt>
|
||||||
<i class="icon-question-sign get-help" title="The location in disk of the license manifest, a document listing all packages installed in your image and their licenses"></i>
|
<i class="icon-question-sign get-help" title="The location in disk of the license manifest, a document listing all packages installed in your image and their licenses"></i>
|
||||||
<a href="{% url 'targetpkg' build.pk target.target.pk %}">License manifest</a>
|
<a href="{% url 'targetpkg' build.pk target.target.pk %}">License manifest</a>
|
||||||
@@ -100,10 +113,12 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
|
{% endif %}
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -402,6 +402,7 @@ def builddashboard( request, build_id ):
|
|||||||
targets = [ ]
|
targets = [ ]
|
||||||
ntargets = 0
|
ntargets = 0
|
||||||
hasImages = False
|
hasImages = False
|
||||||
|
targetHasNoImages = False
|
||||||
for t in tgts:
|
for t in tgts:
|
||||||
elem = { }
|
elem = { }
|
||||||
elem[ 'target' ] = t
|
elem[ 'target' ] = t
|
||||||
@@ -428,7 +429,11 @@ def builddashboard( request, build_id ):
|
|||||||
ndx = 0;
|
ndx = 0;
|
||||||
f = i.file_name[ ndx + 1: ]
|
f = i.file_name[ ndx + 1: ]
|
||||||
imageFiles.append({ 'path': f, 'size' : i.file_size })
|
imageFiles.append({ 'path': f, 'size' : i.file_size })
|
||||||
|
if ( t.is_image and
|
||||||
|
(( len( imageFiles ) <= 0 ) or ( len( t.license_manifest_path ) <= 0 ))):
|
||||||
|
targetHasNoImages = True
|
||||||
elem[ 'imageFiles' ] = imageFiles
|
elem[ 'imageFiles' ] = imageFiles
|
||||||
|
elem[ 'targetHasNoImages' ] = targetHasNoImages
|
||||||
targets.append( elem )
|
targets.append( elem )
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|||||||
Reference in New Issue
Block a user