diff options
| -rw-r--r-- | bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index 8acf013476..a7db1efc65 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |||
| @@ -239,6 +239,25 @@ class LocalhostBEController(BuildEnvironmentController): | |||
| 239 | with open(config, "w") as conf: | 239 | with open(config, "w") as conf: |
| 240 | conf.write('BBPATH .= ":${LAYERDIR}"\nBBFILES += "${LAYERDIR}/recipes/*.bb"\n') | 240 | conf.write('BBPATH .= ":${LAYERDIR}"\nBBFILES += "${LAYERDIR}/recipes/*.bb"\n') |
| 241 | 241 | ||
| 242 | # Update the Layer_Version dirpath that has our base_recipe in | ||
| 243 | # to be able to read the base recipe to then generate the | ||
| 244 | # custom recipe. | ||
| 245 | br_layer_base_recipe = layers.get( | ||
| 246 | layer_version=customrecipe.base_recipe.layer_version) | ||
| 247 | |||
| 248 | br_layer_base_dirpath = \ | ||
| 249 | os.path.join(self.be.sourcedir, | ||
| 250 | self.getGitCloneDirectory( | ||
| 251 | br_layer_base_recipe.giturl, | ||
| 252 | br_layer_base_recipe.commit), | ||
| 253 | customrecipe.base_recipe.layer_version.dirpath | ||
| 254 | ) | ||
| 255 | |||
| 256 | customrecipe.base_recipe.layer_version.dirpath = \ | ||
| 257 | br_layer_base_dirpath | ||
| 258 | |||
| 259 | customrecipe.base_recipe.layer_version.save() | ||
| 260 | |||
| 242 | # create recipe | 261 | # create recipe |
| 243 | recipe_path = \ | 262 | recipe_path = \ |
| 244 | os.path.join(layerpath, "recipes", "%s.bb" % target.target) | 263 | os.path.join(layerpath, "recipes", "%s.bb" % target.target) |
