diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index 9deb572839..08419f2ded 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py @@ -218,9 +218,8 @@ class LocalhostBEController(BuildEnvironmentController): raise BuildSetupException("BE is not consistent: bblayers.conf file missing at %s" % bblayerconf) # 5. create custom layer and add custom recipes to it - layerpath = os.path.join(self.be.sourcedir, - "_meta-toaster-custom_", - bitbake.req.project.name) + layerpath = os.path.join(self.be.builddir, + CustomImageRecipe.LAYER_NAME) for target in targets: try: customrecipe = CustomImageRecipe.objects.get(name=target.target,