From 9fe29fd7db125d8f1295086b003d925c255303f4 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 30 Jun 2011 23:02:51 -0700 Subject: command|cooker|event: add findConfigFilePath command This takes the name of a .conf file and returns the full path to it (Bitbake rev: 22c8600b885faf841795b872d82f68dfb644a26e) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake/lib/bb/cooker.py') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 369444b9b3..e537634df8 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -516,6 +516,10 @@ class BBCooker: if regex in unmatched: collectlog.warn("No bb files matched BBFILE_PATTERN_%s '%s'" % (collection, pattern)) + def findConfigFilePath(self, configfile): + path = self._findConfigFile(configfile) + bb.event.fire(bb.event.ConfigFilePathFound(path), self.configuration.data) + def findConfigFiles(self, varname): """ Find config files which are appropriate values for varname. -- cgit v1.2.3-54-g00ecf