From 3939a216a53f58831e640e85ed95f7edff3ca76f Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 4 Jan 2011 20:28:20 +0000 Subject: bitbake: implement command to find configuration files for a config variable Some configuration variables (MACHINE, MACHINE-SDK and DISTRO) set which confguration files bitbake should use. The added command , findConfigFiles, enables a UI to query which files are suitable values for a specified parameter. Signed-off-by: Joshua Lock --- bitbake/lib/bb/command.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bitbake/lib/bb/command.py') diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 42b5b06712..e83751a2fa 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py @@ -232,6 +232,17 @@ class CommandsAsync: command.finishAsyncCommand() generateTargetsTree.needcache = True + def findConfigFiles(self, command, params): + """ + Find config files which provide appropriate values + for the passed configuration variable. i.e. MACHINE + """ + varname = params[0] + + command.cooker.findConfigFiles(varname) + command.finishAsyncCommand() + findConfigFiles.needcache = True + def showVersions(self, command, params): """ Show the currently selected versions -- cgit v1.2.3-54-g00ecf