diff options
| author | Joshua Lock <josh@linux.intel.com> | 2011-01-04 20:28:20 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-24 15:54:51 +0000 |
| commit | 3939a216a53f58831e640e85ed95f7edff3ca76f (patch) | |
| tree | 897568c0cd94bc1c624a5480644387eab0213b18 /bitbake/lib/bb/command.py | |
| parent | 1b3eb0c35f504e8f652303a4b238034ecc5c5d02 (diff) | |
| download | poky-3939a216a53f58831e640e85ed95f7edff3ca76f.tar.gz | |
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 <josh@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/command.py')
| -rw-r--r-- | bitbake/lib/bb/command.py | 11 |
1 files changed, 11 insertions, 0 deletions
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: | |||
| 232 | command.finishAsyncCommand() | 232 | command.finishAsyncCommand() |
| 233 | generateTargetsTree.needcache = True | 233 | generateTargetsTree.needcache = True |
| 234 | 234 | ||
| 235 | def findConfigFiles(self, command, params): | ||
| 236 | """ | ||
| 237 | Find config files which provide appropriate values | ||
| 238 | for the passed configuration variable. i.e. MACHINE | ||
| 239 | """ | ||
| 240 | varname = params[0] | ||
| 241 | |||
| 242 | command.cooker.findConfigFiles(varname) | ||
| 243 | command.finishAsyncCommand() | ||
| 244 | findConfigFiles.needcache = True | ||
| 245 | |||
| 235 | def showVersions(self, command, params): | 246 | def showVersions(self, command, params): |
| 236 | """ | 247 | """ |
| 237 | Show the currently selected versions | 248 | Show the currently selected versions |
