summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2014-07-09toaster: new project page implementationAlexandru DAMIAN
We add the logic to create a new project. This page also serves as user registration and silent login for users. Once the project is added, the main project page is displayed. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-04toaster: whitespace fixAlexandru DAMIAN
This patch is just a whitespace (end-of-line) fix. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-04toaster: add automated login in new project pageAlexandru DAMIAN
Toaster uses the Django authentication system to assign user accounts to the projects that are being created. In the current implementation, the user accounts are created/authenticated automatically, on the fly, based on the fields specified in the create new project page. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-04toaster: add project pagesAlexandru DAMIAN
We add the new project and project page skeletons. In the process, we add an identifier in the settings.py to detect whenever Toaster is running in managed mode, and a context processor to make this value available to the template processor. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-04toasterui: Show in the log that ToasterUi is ready to receive events.Dave Lerner
Issue: TA53702 It was observed that a sequence in a script such as bitbake --server-only .. bitbake --observe-only .. bitbake <some target> could generate events from the server to the observer before the observer was ready to read the events, and the early events of builds were consistently dropped. Adding a "ready" note in the log allows the script to scan for that message before proceeding to building a target. Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-04toaster: automatically enable applicationsAlexandru DAMIAN
We automatically enable local applications in INSTALLED_APPS based on detecting a models.py or views.py file. This allows Toaster extensibility by adding applications, without having to edit configuration files. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-04toaster: automatically discover urls.py filesAlexandru DAMIAN
Added code to automatically discover and add url dispatchers to the urlpattern list. This allows extension of Toaster through adding applications that will be automatically registered with the URL dispatcher. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-04toaster: remove strftime calls in filtersAlexandru DAMIAN
We remove the unneeded strftime calls in filters, as the filters can deal directly with datetime types. [YOCTO #6379] Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-03fetch2/svn: Add transportuser parameterRichard Purdie
There may be a need to set the user for the transport rather than the subversion command itself. Add a parameter to the url to allow this. [YOCTO #6475] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-03lib: fix no newline at end of fileRobert Yang
Add a '\n' to the last line of the file to fix: No newline at end of file Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-03toaster: fix no newline at end of fileRobert Yang
Add a '\n' to the last line of the file to fix: No newline at end of file Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-03templates: Added newline character to end of script.Scott Rifenbark
Prevents errors when editing in vi and writing and quiting. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-27bitbake-user-manual-ref-variables.xml: Edits to OVERRIDES variable.Scott Rifenbark
More detail. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-27bitbake-user-manual-execution.xml: Minor fixes.Robert P. J. Day
Collection of typo and grammar fixes from "Execution" chapter. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-27bitbake-user-manual-intro.xml: Minor fixes mostly grammar adjustments.Robert P. J. Day
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-26bitbake-user-manual-fetching.xml: Small fix in Git FetcherScott Rifenbark
Fixed how we refer to the "rev" paramater. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-26bitbake-user-manual-execution.xml: Typo and grammar fixes.Robert P. J. Day
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-26bitbake-user-manual-execution.xml: Edits to "Providers and Preferences"Scott Rifenbark
I split this section into two sections and tried to simplify what was being said about PROVIDES. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-26bitbake-user-manual-fetching.xml: Small wording change.Scott Rifenbark
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-26bitbake-user-manual-ref-variables.xml: Edits to PROVIDES variable.Scott Rifenbark
Added some more detail to help describe the variable. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-25bitbake-user-manual-style.css: Added permalink style for displayScott Rifenbark
Fixes [YOCTO #5772] Added a couple styles to the CSS style sheet so that the displayed permalink symbol is barely visible unless you hover over it with the mouse. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-25bitbake-user-manual-customization.xsl: Added support for variable permalinks.Scott Rifenbark
Fixes [YOCTO #5772] Including the gloss-permalink.xsl file in the customization layer so that making the manual now generates permalinks for each variable definition in the glossary. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-25template: Added XSL template to support variable glossary permalinks.Scott Rifenbark
Fixes [YOCTO #5772] This file enables creation of permalinks for variables defined in the glossary. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-25bitbake-user-manual-intro.xml: Edits to "Obtaining BitBake"Scott Rifenbark
Updated the last bullet item that describes a final way to obtain a copy of BitBake. The example was too specific regarding Poky and OE. So, I made it quite generic and kept with the convention of not having any specific links from the BitBake manual into YP docs or such. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-25bitbake-user-manual-intro.xml: Basic proofreading, grammar fixes.Robert P. J. Day
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-20toaster: Fix spacing and layout in no image files notificationBelen Barros
Close the definition list before adding the notification, and restrict the notification width to avoid uncomfortable line lenghts. Signed-off-by: Belen Barros <belen.barros.pena@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-20toaster: display message if no images are generatedFarrell Wymore
Display message if no images are generated for a target. This commit was amended to have more conditions for displaying the message. [YOCTO #6094] Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-20toaster: Add performance testing scriptIonut Chisanovici
This is implemented as a django management command. For the moment the 'manage.py perf' command will track the toaster 'gui' urls http response code and load time. To use it: 1. do your toaster builds 2. ensure toaster is started 1. cd bitbake/lib/toaster 2. ln -s ../../../build/toaster.sqlite 3. ./manage.py perf Signed-off-by: Ionut Chisanovici <ionutx.chisanovici@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-20toaster: refactor the target pageFarrell Wymore
the target (packages) page had to refactored to allow the displays to differ depending on the caller namely the license manifest link. Amended to make the link from the tag rather than the pathname itself. [YOCTO #6291] [YOCTO #6079] Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-19build.py: Ensure shared work siginfo files are written to the correct locationRichard Purdie
Right now shared work signature data is saved to the non-shared directory which is confusing to everyone including bitbake. Whilst its messy, extra the stampbase data instead, which ensures the sig data is written to the correct location alongside its corresponding stamp file. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-18bitbake-user-manual-fetching.xml: Grammar, typo, and tweaks.Robert P. J. Day
Various grammatical and typo tweaks all in fetching chapter, including moving CVS section after wget section for more logical content flow. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-18bitbake-user-manual-style.css: Removed dead .PNG fileScott Rifenbark
Fixes [YOCTO #6430] I removed an old .PNG file that is not used. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-18bitbake-user-manual: Added permalink support.Scott Rifenbark
Fixes [YOCTO #5772] I added the five XSL templates to the template folder. I updated the bitbake-user-manual-customization.xsl layer file to include the new templates. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-18bitbake-user-manual-customization.xsl: Removed stale TOC variable.Scott Rifenbark
I deleted the commented out xsl:param line that attempts to set labeling for Appendices. It had been replaced by a working line. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-18bitbake-user-manual-fetching.xml: Edits to the Git Submodule fetcher section.Scott Rifenbark
Exchanged "SRC_URI" for "URI" for clarity. Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-18bitbake-user-manual-fetching.xml: Added new Git Submodule Fetcher section.Scott Rifenbark
Added the "GIT Submodule Fetcher (gitsm://)" section to the fetchers chapter. This information was provided by Chris Morgan. Reported-by: Chris Morgan <chmorgan@gmail.com> Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
2014-06-12toaster: build control functionalityAlexandru DAMIAN
We add the build control functionality to toaster. * The bldcontrol application gains bbcontroller classes that know how to manage a localhost build environment. * The toaster UI now detects it is running under build environment controller, and update the build controller database and will shut down the bitbake server once the build is complete. * The toaster script can now run in standalone mode, launching the build controller and the web interface instead of just monitoring the build, as in the interactive mode. * A fixture with the default build controller entry for localhost is provided. [YOCTO #5490] [YOCTO #5491] [YOCTO #5492] [YOCTO #5493] [YOCTO #5494] [YOCTO #5537] Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-06-12toastergui: fix built ETA calculationAlexandru DAMIAN
We fix the calculation showing the estimated time to build completion. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-06-12xmlrpc: add support for token reusingAlexandru DAMIAN
We add support to specify a connection token in the command line and in the environment variable BBTOKEN. When a client registers to a bitbake server, that client will have exclusive access to the server. The client is identified by a server-supplied token. If a client terminates, we cannot reconnect to the server as the token is lost. This patch adds the capability to specify the connection token in the command line for xmlrpc clients. This allows us to have bitbake work as an already-authenticated client with the server and resume sending commands to a server. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-06-12toaster: add function to get the database urlAlexandru DAMIAN
We add a function that returns the DATABASE_URL for the current 'default' database settings. This is useful to be able to start other toaster instances with the same database settigns as the currently running instance. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-06-12toaster: create models for bldcontrol and enable itAlexandru DAMIAN
We create the model classes that store information about triggering builds, and the available build environments. We add a fixture with a default build environment for build control, using a "build/" directory under the poky checkout directory. We enable the bldcontrol in toaster starting script and in the toaster settings as to allow the actual database to be kept in sync with the source code. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-06-12toaster: initial bldcontrol applicationAlexandru DAMIAN
The build features of Toaster will be contained into a separate application, as to modularize the Toaster project and provide multiple options for deployment. This patch adds the application as a barebone Django application in the Toaster project. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-06-11bb/utils: fix contains_any()Ross Burton
"set1 in set2" doesn't do what you'd expect, and if it did do a subset test that's not the logic required by contains_any(). Instead get the intersection of checkvalues and val and check if the resulting set is empty or not (by evaluating it in a boolean context), which tells us if there are any elements in common. Based on a patch by Valentin Popa <valentin.popa@intel.com>. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-11bb/tests/data.py: add tests for contains() and contains_any()Ross Burton
contains_any is buggy so write a test case to demonstrate this. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-11cache.py: print debug info when EXCLUDE_FROM_WORLDRobert Yang
This gives us an easy way to find out which recipes have been excluded from world when there are many layers. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-11toaster: add Project class models to ormAlexandru DAMIAN
This patch adds the Project class models to the toaster GUI data model. There is no specified use, and the link in the Build class is optional. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-11toaster: comment out bldcontrol migration commandAlexandru DAMIAN
This fixes toaster startup failing after the preparatory patches for bldcontrol application have been merged. I slipped a bldcontrol-specific line into the toaster startup script and this prevents toaster from starting. We comment out this line until the bldcontrol application have been merged. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-06bitbake: show wildcard appends for bitbake-layersAsh Charles
The 'bitbake-layers show-appends' command can use the built-in get_file_appends() method which correctly identifies bbappends that include a '%' wildcard in their filename. Signed-off-by: Ash Charles <ashcharles@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-06toasterui: fix django settings environment valueAlexandru DAMIAN
Previously, the buildinfohelper only set a django settings module environment variable if none were set. This may lead to problems when the starting the toasterui from an already existing Django environment. As such, we always override the variable to provide the correct name for the local Django settings module. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-06toaster: add project related modelsAlexandru DAMIAN
We introduce the notion of a project in Toaster as the item that holds the specification for triggering a build: the set of layers used, the set of configuration variable values, and the set of targets to be build. Builds triggered through Toaster will be associated with a Project, and they will be configured based on the project settings at the moment when the build is ordered. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>