diff options
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 102d40fda0..203271868a 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -641,6 +641,18 @@ class BBCooker: | |||
641 | if regex in unmatched: | 641 | if regex in unmatched: |
642 | collectlog.warn("No bb files matched BBFILE_PATTERN_%s '%s'" % (collection, pattern)) | 642 | collectlog.warn("No bb files matched BBFILE_PATTERN_%s '%s'" % (collection, pattern)) |
643 | 643 | ||
644 | def findCoreBaseFiles(self, subdir, configfile): | ||
645 | corebase = self.configuration.data.getVar('COREBASE', True) or "" | ||
646 | paths = [] | ||
647 | for root, dirs, files in os.walk(corebase + '/' + subdir): | ||
648 | for d in dirs: | ||
649 | configfilepath = os.path.join(root, d, configfile) | ||
650 | if os.path.exists(configfilepath): | ||
651 | paths.append(os.path.join(root, d)) | ||
652 | |||
653 | if paths: | ||
654 | bb.event.fire(bb.event.CoreBaseFilesFound(paths), self.configuration.data) | ||
655 | |||
644 | def findConfigFilePath(self, configfile): | 656 | def findConfigFilePath(self, configfile): |
645 | """ | 657 | """ |
646 | Find the location on disk of configfile and if it exists and was parsed by BitBake | 658 | Find the location on disk of configfile and if it exists and was parsed by BitBake |