"per-package" should say "per-recipe"

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
toaster: add fields for sourcedir and builddir paths

We add explicit absolute paths for a directory where
the layer sources will be checked out (sourcedir) and
where the build activities will take place.

Adding minimal checking when starting the application in
order to make sure that BuildEnvironment (BE) settings are
usable.

Modify the localhost bbcontroller to use the BE settings
instead of trying to self-configure on checked out sources.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: added subdirectory entry for build layers

A layer may live in a subdirectory of a git repository,
so we add a field to track this setting.

We add the Project schedule_build function, which creates
a build request from the current project configuration.

We also fix an import problem with Projects in views.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: move bldcontrol initial_data fixture to code

We move the initial_data fixture to a code migration,
in order to make sure that we don't overwrite modified data.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: add project main edit page

This is the first commit on the project main edit page.

At this point we have:
* the default settings for a newly created project
* the ability to add targets
* the ability to trigger a build command, and have
the build executed

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: properly set layers when running a build

This patch enables the localhost build controller to
properly set the layers before the build runs.

It creates the checkout directories under BuildEnvironment
sourcedir directory, and runs the build in the buildir
directory.

Build launch errors are tracked in the newly added BRError table.
These are different from build errors, in the sense that the
build can't start due to these errors.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster-requirements.txt: document requirements for the python environment

Since Toaster adds a number of specific requirements managed
by pip, we document these requirements in order to be able
to run bitbake and toaster under virtualenv. The target here
is to break the dependency on distro packages for specific
python libraries.

In order to start bitbake/Toaster in a distro-independent manner,
we use virtualenv and pip. We add venv to the .gitignore list
to make room for the virtualenv deployment in this directory.

Use this command sequence to setup the virtualenv:

$ virtualenv venv
$ . venv/bin/activate
$ cat toaster-requirements.txt | xargs pip install

bitbake and Toaster will then run normally under virtualenv.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster start script allows for Django 1.6

We perform upgrade to Django 1.6 in order to keep using
a current Django version. In practice, this means
allowing for both 1.5 and 1.6 version in the toaster
start script. We also modify the suggestion
installation commands to remove "sudo" since now pip
can be used in a virtualenv.

Update requirements.txt to install the 1.6 Django release.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toasterui: fixing event.data clash

This patch fixes a name collision on the event.data
in the MetadataEvent class. event.data is used in the
event system as a copy of "d" in certain situations,
and this collision triggered a bug leading to data loss.

[YOCTO #6332]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>