bitbake: toaster: localhostbecontroller CustomRecipe now base_recipe is Recipe

Update the reference to the base_recipe. It is now a Recipe object
rather than an intermediate AvailableRecipe object.
Therefore doesn't need an extra traverse down the object hierarchy.

(Bitbake rev: 8056ec65bd93005ecb7b0ed12dcb21b3b60df22c)

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>
This commit is contained in:
Michael Wood 2015-10-21 14:16:45 +01:00 committed by Richard Purdie
parent 7d5d8d0cd9
commit 14d09c8b22
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ class LocalhostBEController(BuildEnvironmentController):
# create recipe
recipe = os.path.join(layerpath, "recipes", "%s.bb" % target.target)
with open(recipe, "w") as recipef:
recipef.write("require %s\n" % customrecipe.base_recipe.recipe.file_path)
recipef.write("require %s\n" % customrecipe.base_recipe.file_path)
packages = [pkg.name for pkg in customrecipe.packages.all()]
if packages:
recipef.write('IMAGE_INSTALL = "%s"\n' % ' '.join(packages))