From 86aa524667e73772aaf21a1dd1b745ccb28f3a83 Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Wed, 4 Mar 2020 14:02:23 -0600 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/command.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bitbake') 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: getAllAppends.readonly = True def findProviders(self, command, params): - return command.cooker.findProviders() + try: + mc = params[0] + except IndexError: + mc = '' + return command.cooker.findProviders(mc) findProviders.readonly = True def findBestProvider(self, command, params): -- cgit v1.2.3-54-g00ecf