summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-06-30 23:02:51 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-01 17:17:35 +0100
commit9fe29fd7db125d8f1295086b003d925c255303f4 (patch)
tree1d89d674c11f264c40c460ff2360b2553b37900a /bitbake/lib/bb/cooker.py
parent6769269bea2983a4036a535b3e679e13126318ed (diff)
downloadpoky-9fe29fd7db125d8f1295086b003d925c255303f4.tar.gz
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 <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py4
1 files changed, 4 insertions, 0 deletions
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:
516 if regex in unmatched: 516 if regex in unmatched:
517 collectlog.warn("No bb files matched BBFILE_PATTERN_%s '%s'" % (collection, pattern)) 517 collectlog.warn("No bb files matched BBFILE_PATTERN_%s '%s'" % (collection, pattern))
518 518
519 def findConfigFilePath(self, configfile):
520 path = self._findConfigFile(configfile)
521 bb.event.fire(bb.event.ConfigFilePathFound(path), self.configuration.data)
522
519 def findConfigFiles(self, varname): 523 def findConfigFiles(self, varname):
520 """ 524 """
521 Find config files which are appropriate values for varname. 525 Find config files which are appropriate values for varname.