mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02: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
@@ -402,6 +402,7 @@ def builddashboard( request, build_id ):
|
||||
targets = [ ]
|
||||
ntargets = 0
|
||||
hasImages = False
|
||||
targetHasNoImages = False
|
||||
for t in tgts:
|
||||
elem = { }
|
||||
elem[ 'target' ] = t
|
||||
@@ -428,7 +429,11 @@ def builddashboard( request, build_id ):
|
||||
ndx = 0;
|
||||
f = i.file_name[ ndx + 1: ]
|
||||
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[ 'targetHasNoImages' ] = targetHasNoImages
|
||||
targets.append( elem )
|
||||
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user