summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/migrations
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-08-26 15:36:29 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-29 13:56:50 +0100
commitee250eb7e4be2c2964bbeeada93dfff7b8d5e72f (patch)
tree5142b3c1fbf3f9105977aad3dee8839bc51af3e1 /bitbake/lib/toaster/bldcontrol/migrations
parent95df54238b6013c374215905b1937fbac72cdd63 (diff)
downloadpoky-ee250eb7e4be2c2964bbeeada93dfff7b8d5e72f.tar.gz
bitbake: toaster: update the bldcontrol to the new orm models
We update the build controller application to make proper use of the bitbake specification in project settings. Added heuristic to detect when the meta* layers and bitbake are checked out from Yocto Project poky, and use a single git checkout. Building without a proper oe-init-build-env is not yet supported. (Bitbake rev: 9eafe14956013f5af39b68fc93e1b03e7ea1f5c2) 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/migrations')
-rw-r--r--bitbake/lib/toaster/bldcontrol/migrations/0006_auto__add_brbitbake.py128
1 files changed, 128 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/migrations/0006_auto__add_brbitbake.py b/bitbake/lib/toaster/bldcontrol/migrations/0006_auto__add_brbitbake.py
new file mode 100644
index 0000000000..74388f8434
--- /dev/null
+++ b/bitbake/lib/toaster/bldcontrol/migrations/0006_auto__add_brbitbake.py
@@ -0,0 +1,128 @@
1# -*- coding: utf-8 -*-
2from south.utils import datetime_utils as datetime
3from south.db import db
4from south.v2 import SchemaMigration
5from django.db import models
6
7
8class Migration(SchemaMigration):
9
10 def forwards(self, orm):
11 # Adding model 'BRBitbake'
12 db.create_table(u'bldcontrol_brbitbake', (
13 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('req', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['bldcontrol.BuildRequest'], unique=True)),
15 ('giturl', self.gf('django.db.models.fields.CharField')(max_length=254)),
16 ('commit', self.gf('django.db.models.fields.CharField')(max_length=254)),
17 ('dirpath', self.gf('django.db.models.fields.CharField')(max_length=254)),
18 ))
19 db.send_create_signal(u'bldcontrol', ['BRBitbake'])
20
21
22 def backwards(self, orm):
23 # Deleting model 'BRBitbake'
24 db.delete_table(u'bldcontrol_brbitbake')
25
26
27 models = {
28 u'bldcontrol.brbitbake': {
29 'Meta': {'object_name': 'BRBitbake'},
30 'commit': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
31 'dirpath': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
32 'giturl': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
33 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34 'req': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['bldcontrol.BuildRequest']", 'unique': 'True'})
35 },
36 u'bldcontrol.brerror': {
37 'Meta': {'object_name': 'BRError'},
38 'errmsg': ('django.db.models.fields.TextField', [], {}),
39 'errtype': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
40 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41 'req': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['bldcontrol.BuildRequest']"}),
42 'traceback': ('django.db.models.fields.TextField', [], {})
43 },
44 u'bldcontrol.brlayer': {
45 'Meta': {'object_name': 'BRLayer'},
46 'commit': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
47 'dirpath': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
48 'giturl': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
49 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
51 'req': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['bldcontrol.BuildRequest']"})
52 },
53 u'bldcontrol.brtarget': {
54 'Meta': {'object_name': 'BRTarget'},
55 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56 'req': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['bldcontrol.BuildRequest']"}),
57 'target': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
58 'task': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'})
59 },
60 u'bldcontrol.brvariable': {
61 'Meta': {'object_name': 'BRVariable'},
62 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
63 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
64 'req': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['bldcontrol.BuildRequest']"}),
65 'value': ('django.db.models.fields.TextField', [], {'blank': 'True'})
66 },
67 u'bldcontrol.buildenvironment': {
68 'Meta': {'object_name': 'BuildEnvironment'},
69 'address': ('django.db.models.fields.CharField', [], {'max_length': '254'}),
70 'bbaddress': ('django.db.models.fields.CharField', [], {'max_length': '254', 'blank': 'True'}),
71 'bbport': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
72 'bbstate': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
73 'bbtoken': ('django.db.models.fields.CharField', [], {'max_length': '126', 'blank': 'True'}),
74 'betype': ('django.db.models.fields.IntegerField', [], {}),
75 'builddir': ('django.db.models.fields.CharField', [], {'max_length': '512', 'blank': 'True'}),
76 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
77 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78 'lock': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
79 'sourcedir': ('django.db.models.fields.CharField', [], {'max_length': '512', 'blank': 'True'}),
80 'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
81 },
82 u'bldcontrol.buildrequest': {
83 'Meta': {'object_name': 'BuildRequest'},
84 'build': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Build']", 'null': 'True'}),
85 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
86 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
87 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Project']"}),
88 'state': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
89 'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
90 },
91 u'orm.bitbakeversion': {
92 'Meta': {'object_name': 'BitbakeVersion'},
93 'branch': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
94 'dirpath': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
95 'giturl': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
96 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
97 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32'})
98 },
99 u'orm.build': {
100 'Meta': {'object_name': 'Build'},
101 'bitbake_version': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
102 'build_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
103 'completed_on': ('django.db.models.fields.DateTimeField', [], {}),
104 'cooker_log_path': ('django.db.models.fields.CharField', [], {'max_length': '500'}),
105 'distro': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
106 'distro_version': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
107 'errors_no': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
108 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
109 'machine': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
110 'outcome': ('django.db.models.fields.IntegerField', [], {'default': '2'}),
111 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Project']", 'null': 'True'}),
112 'started_on': ('django.db.models.fields.DateTimeField', [], {}),
113 'timespent': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
114 'warnings_no': ('django.db.models.fields.IntegerField', [], {'default': '0'})
115 },
116 u'orm.project': {
117 'Meta': {'object_name': 'Project'},
118 'bitbake_version': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.BitbakeVersion']"}),
119 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
120 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
121 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
122 'short_description': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
123 'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
124 'user_id': ('django.db.models.fields.IntegerField', [], {'null': 'True'})
125 }
126 }
127
128 complete_apps = ['bldcontrol'] \ No newline at end of file