summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldviewer
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2014-03-12 18:47:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-14 07:18:46 -0700
commit839f30486e82710b54deaa979bf69390013ec8b6 (patch)
treefa8b05426616274e4467f8776ae27fb33d196a1b /bitbake/lib/toaster/bldviewer
parenta3eb7da31c998ae202717a91917954e98cbf8eb8 (diff)
downloadpoky-839f30486e82710b54deaa979bf69390013ec8b6.tar.gz
bitbake: toaster: populate target image file table
Using ImageFileSize Metadata event, the image output file and its size are populated into target_image_file table. [YOCTO #5189] [YOCTO #5228] (Bitbake rev: a0b06d362b9aa08fda293489467af343c6ca6de4) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldviewer')
-rw-r--r--bitbake/lib/toaster/bldviewer/api.py1
-rw-r--r--bitbake/lib/toaster/bldviewer/views.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldviewer/api.py b/bitbake/lib/toaster/bldviewer/api.py
index 654864e1e8..76d45c7d2c 100644
--- a/bitbake/lib/toaster/bldviewer/api.py
+++ b/bitbake/lib/toaster/bldviewer/api.py
@@ -25,6 +25,7 @@ from django.conf.urls import patterns, include, url
25urlpatterns = patterns('bldviewer.views', 25urlpatterns = patterns('bldviewer.views',
26 url(r'^builds$', 'model_explorer', {'model_name':'build'}, name='builds'), 26 url(r'^builds$', 'model_explorer', {'model_name':'build'}, name='builds'),
27 url(r'^targets$', 'model_explorer', {'model_name':'target'}, name='targets'), 27 url(r'^targets$', 'model_explorer', {'model_name':'target'}, name='targets'),
28 url(r'^target_image_file$', 'model_explorer', {'model_name':'target_image_file'}, name='target_image_file'),
28 url(r'^tasks$', 'model_explorer', {'model_name':'task'}, name='task'), 29 url(r'^tasks$', 'model_explorer', {'model_name':'task'}, name='task'),
29 url(r'^task_dependencies$', 'model_explorer', {'model_name':'task_dependency'}, name='task_dependencies'), 30 url(r'^task_dependencies$', 'model_explorer', {'model_name':'task_dependency'}, name='task_dependencies'),
30 url(r'^packages$', 'model_explorer', {'model_name':'package'}, name='package'), 31 url(r'^packages$', 'model_explorer', {'model_name':'package'}, name='package'),
diff --git a/bitbake/lib/toaster/bldviewer/views.py b/bitbake/lib/toaster/bldviewer/views.py
index 435bc8e6bd..6f863796db 100644
--- a/bitbake/lib/toaster/bldviewer/views.py
+++ b/bitbake/lib/toaster/bldviewer/views.py
@@ -25,7 +25,7 @@ from django.db.models import Q
25from django.shortcuts import render 25from django.shortcuts import render
26from orm.models import Build, Target, Task, Layer, Layer_Version, Recipe, LogMessage, Variable, Target_Installed_Package 26from orm.models import Build, Target, Task, Layer, Layer_Version, Recipe, LogMessage, Variable, Target_Installed_Package
27from orm.models import Task_Dependency, Recipe_Dependency, Package, Package_File, Package_Dependency 27from orm.models import Task_Dependency, Recipe_Dependency, Package, Package_File, Package_Dependency
28from orm.models import Target_Installed_Package, VariableHistory 28from orm.models import Target_Installed_Package, VariableHistory, Target_Image_File
29from django.views.decorators.cache import cache_control 29from django.views.decorators.cache import cache_control
30from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger 30from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
31 31
@@ -159,6 +159,7 @@ def model_explorer(request, model_name):
159 model_mapping = { 159 model_mapping = {
160 'build': Build, 160 'build': Build,
161 'target': Target, 161 'target': Target,
162 'target_image_file': Target_Image_File,
162 'task': Task, 163 'task': Task,
163 'task_dependency': Task_Dependency, 164 'task_dependency': Task_Dependency,
164 'package': Package, 165 'package': Package,