toaster: update database schema

This is a schema update to account for

* relaxing constraints in Target_Image_File table
* modifying permission filed to string value
* adding license_manifest_path field
* adding image_size field

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: write files-in-image to the database

Adding code to write files-in-image data from the metadata
event to the database.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: add commands to list and delete builds

We add Django commands for the manage.py to manage the database
content.

The two commands added are:
* buildslist - produces a list of current builds
* builddelete - deletes a build and all associated data from the database

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: erase checks for stop command

We remove the checks for the stop command, since we assume
the user really means it wants to shutdown the system when
he issues the command.

	[YOCTO #5376]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: Fix help text for task details outcome

Changes made to models.py and task.html to make sure the
help text for the task outcome is displayed.

[YOCTO #5917]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: add empty outcome support to task page

Add the new "empty" outcome value to the task detail page,
with help text, help notice, plus sorting for empty in the
tasks page.

[YOCTO #5917]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
toaster: add 'bblayers.conf' files to local config filter

In the variables table, add to the local configuration
filter the 'bblayers.conf' in addition to the 'local.conf'
files.

[YOCTO #5912]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
toaster: fix 'show all' labels for tasks and variables

Fix the 'Show all' button label to indicate 'variables' and 'tasks'
instead of the internal page label for the variables page and the
Disk I/O, CPU Usage, and Time pages.

[YOCTO #5915]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
bitbake: fix typo in variable name

When passing -t with an incorrect server type, the error message was using a
variable that doesn't exist.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake-worker: Ensure children have default sigterm handler

The children of the worker should have the default SIGTERM handler,
else they'll try and do cleanup which should only happen in the
parent leading to all kinds of bizarre build failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
runqueue: Improve sigchld handler

The sigchld handler was reaping any processes and this was leading to
confusion with any other process handling code that could be active.
This patch:

a) Ensures we only read any process results for the worker processes
   we want to monitor
b) Ensures we pass the event to any other sigchld handler if
   it isn't an event we're interested in so the functions are properly
   chained.

Together this should resolve some of the reports of unknown processes
people have been reporting.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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]

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>
toaster: add license manifest path to database

Based on image_name, the target is obtained, and the path
is added to the database.

[YOCTO #5649]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
toaster: Add counters to filters

Added count to filters in Build, Tasks and Config variables.

[YOCTO #5821]

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
toaster: add errors and warnings listing

Add the errors and warnings listing to the build
dashboard page.

Signed-off-by: Amit Kumar Chaudhary <amit@floatingpondtech.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake: cooker: some IMAGE_FEATURES not recognized

Fixes an issue in hob which happened when the local.conf file was
modified externally by appending "eclipse-debug" to the IMAGE_FEATURES
variable. The reason of the problem is that some IMAGE_FEATURES are
not available in the image.bbclass file and they are declared in the
core-image.bbclass. Now a default hob image will inherit core-image.

[YOCTO #5711]

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>