diff options
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r-- | bitbake/lib/bb/command.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index be269372f0..06e886973b 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -242,14 +242,21 @@ class CommandsAsync: | |||
242 | included in the package list. | 242 | included in the package list. |
243 | If pkg_list provided use that list (plus any extras brought in by | 243 | If pkg_list provided use that list (plus any extras brought in by |
244 | klass) rather than generating a tree for all packages. | 244 | klass) rather than generating a tree for all packages. |
245 | |||
246 | Add a new option "resolve" to indicate if we need to resolve the | ||
247 | replacement for "virtual/xxx" like pn. | ||
245 | """ | 248 | """ |
246 | klass = params[0] | 249 | klass = params[0] |
247 | if len(params) > 1: | 250 | resolve = False |
251 | if len(params) > 2: | ||
252 | pkg_list = params[1] | ||
253 | resolve = params[2] | ||
254 | elif len(params) > 1: | ||
248 | pkg_list = params[1] | 255 | pkg_list = params[1] |
249 | else: | 256 | else: |
250 | pkg_list = [] | 257 | pkg_list = [] |
251 | 258 | ||
252 | command.cooker.generateTargetsTree(klass, pkg_list) | 259 | command.cooker.generateTargetsTree(klass, pkg_list, resolve) |
253 | command.finishAsyncCommand() | 260 | command.finishAsyncCommand() |
254 | generateTargetsTree.needcache = True | 261 | generateTargetsTree.needcache = True |
255 | 262 | ||