diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-08-22 16:42:35 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-02 18:09:50 +0100 |
commit | ce592fc7f56348a7cb5d1d736431d281dcaaf1a3 (patch) | |
tree | d2bdaa7b6daa13480a3fc054baa570f8db06e32f /bitbake/lib | |
parent | 4daae7987532eb199a8810be2586dfccaebf8053 (diff) | |
download | poky-ce592fc7f56348a7cb5d1d736431d281dcaaf1a3.tar.gz |
bitbake: toaster: Allow git information to be null for BRLayer
We no longer only deal with layers that have their source in a gir
repository, we also allow for local directories too so update the
BRLayer model to reflect this.
(Bitbake rev: a15f61f3ef5a87b87121457f76592c87f0ea5d7f)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/models.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py index 83b696947f..409614b9e7 100644 --- a/bitbake/lib/toaster/bldcontrol/models.py +++ b/bitbake/lib/toaster/bldcontrol/models.py | |||
@@ -126,13 +126,14 @@ class BuildRequest(models.Model): | |||
126 | # These tables specify the settings for running an actual build. | 126 | # These tables specify the settings for running an actual build. |
127 | # They MUST be kept in sync with the tables in orm.models.Project* | 127 | # They MUST be kept in sync with the tables in orm.models.Project* |
128 | 128 | ||
129 | |||
129 | class BRLayer(models.Model): | 130 | class BRLayer(models.Model): |
130 | req = models.ForeignKey(BuildRequest) | 131 | req = models.ForeignKey(BuildRequest) |
131 | name = models.CharField(max_length = 100) | 132 | name = models.CharField(max_length=100) |
132 | giturl = models.CharField(max_length = 254) | 133 | giturl = models.CharField(max_length=254, null=True) |
133 | local_source_dir = models.CharField(max_length=254, null=True) | 134 | local_source_dir = models.CharField(max_length=254, null=True) |
134 | commit = models.CharField(max_length = 254) | 135 | commit = models.CharField(max_length=254, null=True) |
135 | dirpath = models.CharField(max_length = 254) | 136 | dirpath = models.CharField(max_length=254, null=True) |
136 | layer_version = models.ForeignKey(Layer_Version, null=True) | 137 | layer_version = models.ForeignKey(Layer_Version, null=True) |
137 | 138 | ||
138 | class BRBitbake(models.Model): | 139 | class BRBitbake(models.Model): |