diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/template.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/template.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/template.py b/bitbake/lib/bb/ui/crumbs/template.py index e303c3a6b8..92c438f000 100644 --- a/bitbake/lib/bb/ui/crumbs/template.py +++ b/bitbake/lib/bb/ui/crumbs/template.py | |||
@@ -137,8 +137,6 @@ class RecipeFile(ConfigFile): | |||
137 | 137 | ||
138 | class TemplateMgr(gobject.GObject): | 138 | class TemplateMgr(gobject.GObject): |
139 | 139 | ||
140 | __gLocalVars__ = ["MACHINE", "PACKAGE_CLASSES", "DISTRO", "DL_DIR", "SSTATE_DIR", "SSTATE_MIRRORS", "PARALLEL_MAKE", "BB_NUMBER_THREADS", "CONF_VERSION"] | ||
141 | __gBBLayersVars__ = ["BBLAYERS", "LCONF_VERSION"] | ||
142 | __gRecipeVars__ = ["DEPENDS", "IMAGE_INSTALL"] | 140 | __gRecipeVars__ = ["DEPENDS", "IMAGE_INSTALL"] |
143 | 141 | ||
144 | def __init__(self): | 142 | def __init__(self): |
@@ -153,36 +151,20 @@ class TemplateMgr(gobject.GObject): | |||
153 | return "%s/%s%s%s" % (path, "template-", filename, ".hob") | 151 | return "%s/%s%s%s" % (path, "template-", filename, ".hob") |
154 | 152 | ||
155 | @classmethod | 153 | @classmethod |
156 | def convert_to_bblayers_pathfilename(cls, filename, path): | ||
157 | return "%s/%s%s%s" % (path, "bblayers-", filename, ".conf") | ||
158 | |||
159 | @classmethod | ||
160 | def convert_to_local_pathfilename(cls, filename, path): | ||
161 | return "%s/%s%s%s" % (path, "local-", filename, ".conf") | ||
162 | |||
163 | @classmethod | ||
164 | def convert_to_image_pathfilename(cls, filename, path): | 154 | def convert_to_image_pathfilename(cls, filename, path): |
165 | return "%s/%s%s%s" % (path, "hob-image-", filename, ".bb") | 155 | return "%s/%s%s%s" % (path, "hob-image-", filename, ".bb") |
166 | 156 | ||
167 | def open(self, filename, path): | 157 | def open(self, filename, path): |
168 | self.template_hob = HobTemplateFile(TemplateMgr.convert_to_template_pathfilename(filename, path)) | 158 | self.template_hob = HobTemplateFile(TemplateMgr.convert_to_template_pathfilename(filename, path)) |
169 | self.bblayers_conf = ConfigFile(TemplateMgr.convert_to_bblayers_pathfilename(filename, path)) | ||
170 | self.local_conf = ConfigFile(TemplateMgr.convert_to_local_pathfilename(filename, path)) | ||
171 | self.image_bb = RecipeFile(TemplateMgr.convert_to_image_pathfilename(filename, path)) | 159 | self.image_bb = RecipeFile(TemplateMgr.convert_to_image_pathfilename(filename, path)) |
172 | 160 | ||
173 | def setVar(self, var, val): | 161 | def setVar(self, var, val): |
174 | if var in TemplateMgr.__gLocalVars__: | ||
175 | self.local_conf.setVar(var, val) | ||
176 | if var in TemplateMgr.__gBBLayersVars__: | ||
177 | self.bblayers_conf.setVar(var, val) | ||
178 | if var in TemplateMgr.__gRecipeVars__: | 162 | if var in TemplateMgr.__gRecipeVars__: |
179 | self.image_bb.setVar(var, val) | 163 | self.image_bb.setVar(var, val) |
180 | 164 | ||
181 | self.template_hob.setVar(var, val) | 165 | self.template_hob.setVar(var, val) |
182 | 166 | ||
183 | def save(self): | 167 | def save(self): |
184 | self.local_conf.save() | ||
185 | self.bblayers_conf.save() | ||
186 | self.image_bb.save() | 168 | self.image_bb.save() |
187 | self.template_hob.save() | 169 | self.template_hob.save() |
188 | 170 | ||
@@ -200,12 +182,6 @@ class TemplateMgr(gobject.GObject): | |||
200 | if self.template_hob: | 182 | if self.template_hob: |
201 | del self.template_hob | 183 | del self.template_hob |
202 | template_hob = None | 184 | template_hob = None |
203 | if self.bblayers_conf: | ||
204 | del self.bblayers_conf | ||
205 | self.bblayers_conf = None | ||
206 | if self.local_conf: | ||
207 | del self.local_conf | ||
208 | self.local_conf = None | ||
209 | if self.image_bb: | 185 | if self.image_bb: |
210 | del self.image_bb | 186 | del self.image_bb |
211 | self.image_bb = None | 187 | self.image_bb = None |