summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/models.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-09-28 21:45:27 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-29 14:11:38 +0100
commit922503f4c1d664edc5d3c0f66f262b3b4c3e5c56 (patch)
treeaf791653d208cc5674dd75b4ca3ca93896f42b6a /bitbake/lib/toaster/bldcontrol/models.py
parent0bc0a44affe689422fb8d05b19e06338f6901629 (diff)
downloadpoky-922503f4c1d664edc5d3c0f66f262b3b4c3e5c56.tar.gz
bitbake: toaster: Create a relationship between build information and toaster layers
Previously this layer relationship was done by trying to match path information that came back to the buildinfohelper with trying to query for data in toaster's layers table. This rarely matched due to the lose coupling. (Bitbake rev: 838e77c7c3c4006abd1327343a004590ab652de9) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py
index b61de58a3e..f2493a8426 100644
--- a/bitbake/lib/toaster/bldcontrol/models.py
+++ b/bitbake/lib/toaster/bldcontrol/models.py
@@ -1,6 +1,6 @@
1from django.db import models 1from django.db import models
2from django.core.validators import MaxValueValidator, MinValueValidator 2from django.core.validators import MaxValueValidator, MinValueValidator
3from orm.models import Project, ProjectLayer, ProjectVariable, ProjectTarget, Build 3from orm.models import Project, ProjectLayer, ProjectVariable, ProjectTarget, Build, Layer_Version
4 4
5# a BuildEnvironment is the equivalent of the "build/" directory on the localhost 5# a BuildEnvironment is the equivalent of the "build/" directory on the localhost
6class BuildEnvironment(models.Model): 6class BuildEnvironment(models.Model):
@@ -137,6 +137,7 @@ class BRLayer(models.Model):
137 giturl = models.CharField(max_length = 254) 137 giturl = models.CharField(max_length = 254)
138 commit = models.CharField(max_length = 254) 138 commit = models.CharField(max_length = 254)
139 dirpath = models.CharField(max_length = 254) 139 dirpath = models.CharField(max_length = 254)
140 layer_version = models.ForeignKey(Layer_Version, null=True)
140 141
141class BRBitbake(models.Model): 142class BRBitbake(models.Model):
142 req = models.ForeignKey(BuildRequest, unique = True) # only one bitbake for a request 143 req = models.ForeignKey(BuildRequest, unique = True) # only one bitbake for a request