diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-12-02 10:02:46 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-07 17:37:09 +0000 |
commit | 76d53b5856f0bfe34ef22b34082fead746963e2f (patch) | |
tree | 932a89b42ca732202acecc183e6b5bbc1dc92a56 /bitbake | |
parent | 87b2f954b906ca9fe034c83c3d017df27fd70ee1 (diff) | |
download | poky-76d53b5856f0bfe34ef22b34082fead746963e2f.tar.gz |
bitbake: toaster: remove _setupBE function
This function is not needed as build environment is always created
because of the new way to run Toaster. It can be only sourced after
oe-init-build-env is sourced.
(Bitbake rev: 27a59b4373a449f17e46ab93e0eba15cf75967ae)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.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/bldcontrol/localhostbecontroller.py | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index 854a6bbfe2..15c0ff9e82 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |||
@@ -70,17 +70,6 @@ class LocalhostBEController(BuildEnvironmentController): | |||
70 | logger.debug("localhostbecontroller: shellcmd success") | 70 | logger.debug("localhostbecontroller: shellcmd success") |
71 | return out | 71 | return out |
72 | 72 | ||
73 | def _setupBE(self): | ||
74 | assert self.pokydirname and os.path.exists(self.pokydirname) | ||
75 | path = self.be.builddir | ||
76 | if not path: | ||
77 | raise Exception("Invalid path creation specified.") | ||
78 | if not os.path.exists(path): | ||
79 | os.makedirs(path, 0755) | ||
80 | self._shellcmd("bash -c \"source %s/oe-init-build-env %s\"" % (self.pokydirname, path)) | ||
81 | # delete the templateconf.cfg; it may come from an unsupported layer configuration | ||
82 | os.remove(os.path.join(path, "conf/templateconf.cfg")) | ||
83 | |||
84 | 73 | ||
85 | def writeConfFile(self, file_name, variable_list = None, raw = None): | 74 | def writeConfFile(self, file_name, variable_list = None, raw = None): |
86 | filepath = os.path.join(self.be.builddir, file_name) | 75 | filepath = os.path.join(self.be.builddir, file_name) |
@@ -297,16 +286,12 @@ class LocalhostBEController(BuildEnvironmentController): | |||
297 | 286 | ||
298 | logger.debug("localhostbecontroller: current layer list %s " % pformat(layerlist)) | 287 | logger.debug("localhostbecontroller: current layer list %s " % pformat(layerlist)) |
299 | 288 | ||
300 | # 4. configure the build environment, so we have a conf/bblayers.conf | 289 | # 4. update the bblayers.conf |
301 | assert self.pokydirname is not None | ||
302 | self._setupBE() | ||
303 | |||
304 | # 5. update the bblayers.conf | ||
305 | bblayerconf = os.path.join(self.be.builddir, "conf/bblayers.conf") | 290 | bblayerconf = os.path.join(self.be.builddir, "conf/bblayers.conf") |
306 | if not os.path.exists(bblayerconf): | 291 | if not os.path.exists(bblayerconf): |
307 | raise BuildSetupException("BE is not consistent: bblayers.conf file missing at %s" % bblayerconf) | 292 | raise BuildSetupException("BE is not consistent: bblayers.conf file missing at %s" % bblayerconf) |
308 | 293 | ||
309 | # 6. create custom layer and add custom recipes to it | 294 | # 5. create custom layer and add custom recipes to it |
310 | layerpath = os.path.join(self.be.sourcedir, "_meta-toaster-custom") | 295 | layerpath = os.path.join(self.be.sourcedir, "_meta-toaster-custom") |
311 | if os.path.isdir(layerpath): | 296 | if os.path.isdir(layerpath): |
312 | shutil.rmtree(layerpath) # remove leftovers from previous builds | 297 | shutil.rmtree(layerpath) # remove leftovers from previous builds |