diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2020-03-04 14:02:23 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-03-07 16:07:00 +0000 |
commit | 86aa524667e73772aaf21a1dd1b745ccb28f3a83 (patch) | |
tree | 5927d3fe4f7e3260ce12bbee5cf5dd27c90909b2 /bitbake | |
parent | f303c98fda2b14b6d8b16cc21404539e13209c7f (diff) | |
download | poky-86aa524667e73772aaf21a1dd1b745ccb28f3a83.tar.gz |
bitbake: command: Add mc parameter to findProviders command
Adds a multiconfig selection parameter to the findProviders command.
This allows a client to find the providers for a specific multiconfig
instead of the base configuration.
(Bitbake rev: 95bb446137734865f3fe04fe97681d90250deb11)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/command.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index c8e1352865..b38c151b3d 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -414,7 +414,11 @@ class CommandsSync: | |||
414 | getAllAppends.readonly = True | 414 | getAllAppends.readonly = True |
415 | 415 | ||
416 | def findProviders(self, command, params): | 416 | def findProviders(self, command, params): |
417 | return command.cooker.findProviders() | 417 | try: |
418 | mc = params[0] | ||
419 | except IndexError: | ||
420 | mc = '' | ||
421 | return command.cooker.findProviders(mc) | ||
418 | findProviders.readonly = True | 422 | findProviders.readonly = True |
419 | 423 | ||
420 | def findBestProvider(self, command, params): | 424 | def findBestProvider(self, command, params): |