summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-12-07 18:22:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 13:29:17 +0000
commitf760a78e3c36366020778c0cc101f9d8feb51b99 (patch)
tree29eb26c0d6d90d295952f773f0f095ec691e4c94 /bitbake
parent4117af29c6a1f6a30234af7a0ea9296fa278fd95 (diff)
downloadpoky-f760a78e3c36366020778c0cc101f9d8feb51b99.tar.gz
bitbake: toaster: orm Add CustomImagePackage table
This table is used to track all the available packages in the current toaster. Many of these packages belong to many CustomImageRecipes. (Bitbake rev: c1bd4f760cd35535e44f488250e0a56b99cad680) 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')
-rw-r--r--bitbake/lib/toaster/orm/models.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index d1245463ab..20557abfc7 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -721,6 +721,18 @@ class Package(models.Model):
721 section = models.CharField(max_length=80, blank=True) 721 section = models.CharField(max_length=80, blank=True)
722 license = models.CharField(max_length=80, blank=True) 722 license = models.CharField(max_length=80, blank=True)
723 723
724class CustomImagePackage(Package):
725 # CustomImageRecipe fields to track pacakges appended,
726 # included and excluded from a CustomImageRecipe
727 recipe_includes = models.ManyToManyField('CustomImageRecipe',
728 related_name='includes_set')
729 recipe_excludes = models.ManyToManyField('CustomImageRecipe',
730 related_name='excludes_set')
731 recipe_appends = models.ManyToManyField('CustomImageRecipe',
732 related_name='appends_set')
733
734
735
724class Package_DependencyManager(models.Manager): 736class Package_DependencyManager(models.Manager):
725 use_for_related_fields = True 737 use_for_related_fields = True
726 738