summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-12-14 18:45:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 13:29:19 +0000
commit971d65c614ea2265951262f7acb7037d090c1c4a (patch)
tree713955c62109fe2e167682d2e75c1239b5647245 /bitbake
parent6d9f342e12150db8480730bcdf397a7c7b7ac1f2 (diff)
downloadpoky-971d65c614ea2265951262f7acb7037d090c1c4a.tar.gz
bitbake: toaster: localhostbectrl Update the dirpath of customrecipe's base layer
We need to know the location of the based_on recipe's layer on the file system before we try and generate the custom image recipe. As we read the recipe to make the custom version. (Bitbake rev: e6a7cacbddd1df5bac0b79384199cf7264c5bbd5) Signed-off-by: Michael Wood <michael.g.wood@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.py19
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)