summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-11-04 14:54:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 13:29:16 +0000
commit1f102890d6da3d0a330c6bce5c652f747cec222f (patch)
treec55265737f939b5b8c7b41c1ab31f3c6f4a91b86 /bitbake/lib/toaster
parent648753b30d494268bdb1cd3ea07afd6a88633c5b (diff)
downloadpoky-1f102890d6da3d0a330c6bce5c652f747cec222f.tar.gz
bitbake: toaster: orm make CustomImageRecipe inherit from Recipe
This allows us to re-use the properties of a recipe for the custom image recipes as well as re-using the existing templates and logic that deals with recipe objects. (Bitbake rev: bb8120b56be7eee6ed2e4434d8477282a01e0c00) 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')
-rw-r--r--bitbake/lib/toaster/orm/models.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 37f78d7102..d1245463ab 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -1383,16 +1383,11 @@ class ProjectLayer(models.Model):
1383 class Meta: 1383 class Meta:
1384 unique_together = (("project", "layercommit"),) 1384 unique_together = (("project", "layercommit"),)
1385 1385
1386class CustomImageRecipe(models.Model): 1386class CustomImageRecipe(Recipe):
1387 search_allowed_fields = ['name'] 1387 search_allowed_fields = ['name']
1388 name = models.CharField(max_length=100) 1388 base_recipe = models.ForeignKey(Recipe, related_name='based_on_recipe')
1389 base_recipe = models.ForeignKey(Recipe)
1390 packages = models.ManyToManyField(Package)
1391 project = models.ForeignKey(Project) 1389 project = models.ForeignKey(Project)
1392 1390
1393 class Meta:
1394 unique_together = ("name", "project")
1395
1396class ProjectVariable(models.Model): 1391class ProjectVariable(models.Model):
1397 project = models.ForeignKey(Project) 1392 project = models.ForeignKey(Project)
1398 name = models.CharField(max_length=100) 1393 name = models.CharField(max_length=100)