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, 20 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/template.py b/bitbake/lib/bb/ui/crumbs/template.py index 5679c18f76..cbed2708de 100644 --- a/bitbake/lib/bb/ui/crumbs/template.py +++ b/bitbake/lib/bb/ui/crumbs/template.py | |||
@@ -136,11 +136,27 @@ class TemplateMgr(gobject.GObject): | |||
136 | self.local_conf = None | 136 | self.local_conf = None |
137 | self.image_bb = None | 137 | self.image_bb = None |
138 | 138 | ||
139 | @classmethod | ||
140 | def convert_to_template_pathfilename(cls, filename, path): | ||
141 | return "%s/%s%s%s" % (path, "template-", filename, ".hob") | ||
142 | |||
143 | @classmethod | ||
144 | def convert_to_bblayers_pathfilename(cls, filename, path): | ||
145 | return "%s/%s%s%s" % (path, "bblayers-", filename, ".conf") | ||
146 | |||
147 | @classmethod | ||
148 | def convert_to_local_pathfilename(cls, filename, path): | ||
149 | return "%s/%s%s%s" % (path, "local-", filename, ".conf") | ||
150 | |||
151 | @classmethod | ||
152 | def convert_to_image_pathfilename(cls, filename, path): | ||
153 | return "%s/%s%s%s" % (path, "hob-image-", filename, ".bb") | ||
154 | |||
139 | def open(self, filename, path): | 155 | def open(self, filename, path): |
140 | self.template_hob = HobTemplateFile("%s/%s%s%s" % (path, "template-", filename, ".hob")) | 156 | self.template_hob = HobTemplateFile(TemplateMgr.convert_to_template_pathfilename(filename, path)) |
141 | self.bblayers_conf = ConfigFile("%s/%s%s%s" % (path, "bblayers-", filename, ".conf")) | 157 | self.bblayers_conf = ConfigFile(TemplateMgr.convert_to_bblayers_pathfilename(filename, path)) |
142 | self.local_conf = ConfigFile("%s/%s%s%s" % (path, "local-", filename, ".conf")) | 158 | self.local_conf = ConfigFile(TemplateMgr.convert_to_local_pathfilename(filename, path)) |
143 | self.image_bb = RecipeFile("%s/%s%s%s" % (path, "hob-image-", filename, ".bb")) | 159 | self.image_bb = RecipeFile(TemplateMgr.convert_to_image_pathfilename(filename, path)) |
144 | 160 | ||
145 | def setVar(self, var, val): | 161 | def setVar(self, var, val): |
146 | if var in TemplateMgr.__gLocalVars__: | 162 | if var in TemplateMgr.__gLocalVars__: |