diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-07-15 19:31:10 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-23 20:06:58 +0100 |
commit | 1b9175af3fabf12af80c8446af94078afd0832ed (patch) | |
tree | 180743528e824556bb21672826971cb7f1c36538 /bitbake/lib/toaster/bldcontrol/models.py | |
parent | 6e71c276b582135228419d95174b7e7784d496b2 (diff) | |
download | poky-1b9175af3fabf12af80c8446af94078afd0832ed.tar.gz |
bitbake: 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.
(Bitbake rev: 1868d5635b517e0fe1b874674ea7a78910b26e2e)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/models.py')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/models.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py index 1f253ffb22..8c271ffa94 100644 --- a/bitbake/lib/toaster/bldcontrol/models.py +++ b/bitbake/lib/toaster/bldcontrol/models.py | |||
@@ -48,12 +48,14 @@ class BuildRequest(models.Model): | |||
48 | REQ_QUEUED = 1 | 48 | REQ_QUEUED = 1 |
49 | REQ_INPROGRESS = 2 | 49 | REQ_INPROGRESS = 2 |
50 | REQ_COMPLETED = 3 | 50 | REQ_COMPLETED = 3 |
51 | REQ_FAILED = 4 | ||
51 | 52 | ||
52 | REQUEST_STATE = ( | 53 | REQUEST_STATE = ( |
53 | (REQ_CREATED, "created"), | 54 | (REQ_CREATED, "created"), |
54 | (REQ_QUEUED, "queued"), | 55 | (REQ_QUEUED, "queued"), |
55 | (REQ_INPROGRESS, "in progress"), | 56 | (REQ_INPROGRESS, "in progress"), |
56 | (REQ_COMPLETED, "completed"), | 57 | (REQ_COMPLETED, "completed"), |
58 | (REQ_FAILED, "failed"), | ||
57 | ) | 59 | ) |
58 | 60 | ||
59 | project = models.ForeignKey(Project) | 61 | project = models.ForeignKey(Project) |
@@ -84,4 +86,8 @@ class BRTarget(models.Model): | |||
84 | target = models.CharField(max_length=100) | 86 | target = models.CharField(max_length=100) |
85 | task = models.CharField(max_length=100, null=True) | 87 | task = models.CharField(max_length=100, null=True) |
86 | 88 | ||
87 | 89 | class BRError(models.Model): | |
90 | req = models.ForeignKey(BuildRequest) | ||
91 | errtype = models.CharField(max_length=100) | ||
92 | errmsg = models.TextField() | ||
93 | traceback = models.TextField() | ||