mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
devtool: handle virtual providers
For modify / extract / upgrade, if the specified "recipe" is not actually a recipe but a virtual target such as virtual/kernel, map it correctly to the actual recipe and make sure we use that name within the workspace. Thanks to Chris Larson for reminding me this was still broken and for a hint on how to fix it. (From OE-Core rev: 1f7752282ffb47d2621030ddb2fa42a5e491d6d2) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8578bc17b5
commit
db55d31dc2
@@ -31,9 +31,13 @@ def pn_to_recipe(cooker, pn):
|
||||
import bb.providers
|
||||
|
||||
if pn in cooker.recipecache.pkg_pn:
|
||||
filenames = cooker.recipecache.pkg_pn[pn]
|
||||
best = bb.providers.findBestProvider(pn, cooker.data, cooker.recipecache, cooker.recipecache.pkg_pn)
|
||||
return best[3]
|
||||
elif pn in cooker.recipecache.providers:
|
||||
filenames = cooker.recipecache.providers[pn]
|
||||
eligible, foundUnique = bb.providers.filterProviders(filenames, pn, cooker.expanded_data, cooker.recipecache)
|
||||
filename = eligible[0]
|
||||
return filename
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user