diff options
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/bbcontroller.py')
| -rw-r--r-- | bitbake/lib/toaster/bldcontrol/bbcontroller.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/bbcontroller.py b/bitbake/lib/toaster/bldcontrol/bbcontroller.py index 2ca26612d4..058e490fc1 100644 --- a/bitbake/lib/toaster/bldcontrol/bbcontroller.py +++ b/bitbake/lib/toaster/bldcontrol/bbcontroller.py | |||
| @@ -109,24 +109,6 @@ class BuildEnvironmentController(object): | |||
| 109 | self.be = be | 109 | self.be = be |
| 110 | self.connection = None | 110 | self.connection = None |
| 111 | 111 | ||
| 112 | @staticmethod | ||
| 113 | def _updateBBLayers(bblayerconf, layerlist): | ||
| 114 | conflines = open(bblayerconf, "r").readlines() | ||
| 115 | |||
| 116 | bblayerconffile = open(bblayerconf, "w") | ||
| 117 | skip = 0 | ||
| 118 | for i in xrange(len(conflines)): | ||
| 119 | if skip > 0: | ||
| 120 | skip =- 1 | ||
| 121 | continue | ||
| 122 | if conflines[i].startswith("# line added by toaster"): | ||
| 123 | skip = 1 | ||
| 124 | else: | ||
| 125 | bblayerconffile.write(conflines[i]) | ||
| 126 | |||
| 127 | bblayerconffile.write("# line added by toaster build control\nBBLAYERS = \"" + " ".join(layerlist) + "\"") | ||
| 128 | bblayerconffile.close() | ||
| 129 | |||
| 130 | def setLayers(self, bitbake, ls): | 112 | def setLayers(self, bitbake, ls): |
| 131 | """ Checks-out bitbake executor and layers from git repositories. | 113 | """ Checks-out bitbake executor and layers from git repositories. |
| 132 | Sets the layer variables in the config file, after validating local layer paths. | 114 | Sets the layer variables in the config file, after validating local layer paths. |
