From cb1338dedc3873ac81488df9dd3aa6f048e6b02f Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Fri, 11 Oct 2013 13:46:23 +0100 Subject: bitbake: add toaster code to bitbake This patch adds the Toaster component to Bitbake. Toaster is a module designed to record the progress of a Bitbake build, and data about the resultant artifacts. It contains a web-based interface and a REST API allowing post-facto inspection of the build process and artifacts. Features present in this build: * toaster start script * relational data model * Django boilerplate code * the REST API * the Simple UI web interface This patch has all the development history squashed together. Code portions contributed by Calin Dragomir . Signed-off-by: Alexandru DAMIAN --- bitbake/lib/toaster/toastergui/__init__.py | 0 .../lib/toaster/toastergui/static/images/yocto.jpg | Bin 0 -> 6582 bytes .../lib/toaster/toastergui/templates/index.html | 13 ++++++++++ bitbake/lib/toaster/toastergui/urls.py | 27 +++++++++++++++++++++ bitbake/lib/toaster/toastergui/views.py | 26 ++++++++++++++++++++ 5 files changed, 66 insertions(+) create mode 100644 bitbake/lib/toaster/toastergui/__init__.py create mode 100644 bitbake/lib/toaster/toastergui/static/images/yocto.jpg create mode 100644 bitbake/lib/toaster/toastergui/templates/index.html create mode 100644 bitbake/lib/toaster/toastergui/urls.py create mode 100644 bitbake/lib/toaster/toastergui/views.py (limited to 'bitbake/lib/toaster/toastergui') diff --git a/bitbake/lib/toaster/toastergui/__init__.py b/bitbake/lib/toaster/toastergui/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/bitbake/lib/toaster/toastergui/static/images/yocto.jpg b/bitbake/lib/toaster/toastergui/static/images/yocto.jpg new file mode 100644 index 0000000000..5de4b7693a Binary files /dev/null and b/bitbake/lib/toaster/toastergui/static/images/yocto.jpg differ diff --git a/bitbake/lib/toaster/toastergui/templates/index.html b/bitbake/lib/toaster/toastergui/templates/index.html new file mode 100644 index 0000000000..80b02d94a9 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/index.html @@ -0,0 +1,13 @@ + + + GUI Page + + +{% load staticfiles %} + +Yocto + +This is your basic index page! + + + \ No newline at end of file diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py new file mode 100644 index 0000000000..6dbf0c5a56 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/urls.py @@ -0,0 +1,27 @@ +# +# BitBake Toaster Implementation +# +# Copyright (C) 2013 Intel Corporation +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +import os + +from django.conf import settings +from django.conf.urls import patterns, include, url + + +urlpatterns = patterns('toastergui.views', + url(r'^$', 'guihome', name='guihome'), +) diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py new file mode 100644 index 0000000000..ecb2f7e82f --- /dev/null +++ b/bitbake/lib/toaster/toastergui/views.py @@ -0,0 +1,26 @@ +# +# BitBake Toaster Implementation +# +# Copyright (C) 2013 Intel Corporation +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +from django.shortcuts import render +from orm.models import Build, Task + + +def guihome(request): + template = 'index.html' + + return render(request, template) -- cgit v1.2.3-54-g00ecf