summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/template.py
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-03-16 16:48:13 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-20 15:21:37 +0000
commit5b09f2c25ce65f18ae175eb98bfb1379754b47e9 (patch)
tree3778cf79f0852661b6f5d9e3421ca87d0462b803 /bitbake/lib/bb/ui/crumbs/template.py
parentd03856c61150f95d9f479fcee2c7e91bd22eeaa4 (diff)
downloadpoky-5b09f2c25ce65f18ae175eb98bfb1379754b47e9.tar.gz
Hob: save CONF_VERSION and LCONF_VERSION into template
To pass the sanity check, we need to define CONF_VERSION and LCONF_VERSION in local.conf and bblayers.conf. [YOCTO #2119] (Bitbake rev: d595960fea0988df9004d927bc2ec3439540dd9c) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/template.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/template.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/template.py b/bitbake/lib/bb/ui/crumbs/template.py
index d0283546af..a03063c4ff 100644
--- a/bitbake/lib/bb/ui/crumbs/template.py
+++ b/bitbake/lib/bb/ui/crumbs/template.py
@@ -65,7 +65,7 @@ class ConfigFile(File):
65 if header: 65 if header:
66 self.header = header 66 self.header = header
67 else: 67 else:
68 self.header = "# Config generated by the HOB\n\n" 68 self.header = "# Config generated by Hob\n\n"
69 self.dictionary = {} 69 self.dictionary = {}
70 70
71 def setVar(self, var, val): 71 def setVar(self, var, val):
@@ -94,7 +94,7 @@ class HobTemplateFile(ConfigFile):
94 This object does save or load hob specific file. 94 This object does save or load hob specific file.
95 """ 95 """
96 def __init__(self, pathfilename): 96 def __init__(self, pathfilename):
97 ConfigFile.__init__(self, pathfilename, ".hob", "# Hob Template generated by the HOB\n\n") 97 ConfigFile.__init__(self, pathfilename, ".hob", "# Hob Template generated by Hob\n\n")
98 98
99 def getVar(self, var): 99 def getVar(self, var):
100 if var in self.dictionary: 100 if var in self.dictionary:
@@ -121,12 +121,12 @@ class RecipeFile(ConfigFile):
121 This object is for image bb file. 121 This object is for image bb file.
122 """ 122 """
123 def __init__(self, pathfilename): 123 def __init__(self, pathfilename):
124 ConfigFile.__init__(self, pathfilename, ".bb", "# Recipe generated by the HOB\n\ninherit core-image\n") 124 ConfigFile.__init__(self, pathfilename, ".bb", "# Recipe generated by Hob\n\ninherit core-image\n")
125 125
126class TemplateMgr(gobject.GObject): 126class TemplateMgr(gobject.GObject):
127 127
128 __gLocalVars__ = ["MACHINE", "PACKAGE_CLASSES", "DISTRO", "DL_DIR", "SSTATE_DIR", "SSTATE_MIRROR", "PARALLEL_MAKE", "BB_NUMBER_THREAD"] 128 __gLocalVars__ = ["MACHINE", "PACKAGE_CLASSES", "DISTRO", "DL_DIR", "SSTATE_DIR", "SSTATE_MIRROR", "PARALLEL_MAKE", "BB_NUMBER_THREAD", "CONF_VERSION"]
129 __gBBLayersVars__ = ["BBLAYERS"] 129 __gBBLayersVars__ = ["BBLAYERS", "LCONF_VERSION"]
130 __gRecipeVars__ = ["DEPENDS", "IMAGE_INSTALL"] 130 __gRecipeVars__ = ["DEPENDS", "IMAGE_INSTALL"]
131 131
132 def __init__(self): 132 def __init__(self):