diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-24 10:53:36 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-06-24 10:53:38 -0700 |
commit | b781317b5006bc047a59e7fa3c93344115e78ccb (patch) | |
tree | 8b968b876f8dbcd64bb0f4b24836bacb35288d23 /lib | |
parent | 61780379d4512d8a803f19b3af4b19152e246cd6 (diff) | |
download | bitbake-b781317b5006bc047a59e7fa3c93344115e78ccb.tar.gz |
Add a warning if a BBFILE_PATTERN doesn't match any bb files
Likely cause is, of course, typo in the pattern or incorrect BBFILES, so we
should warn the user about this.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/cooker.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index daa3e159f..73a5f4c15 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -457,9 +457,12 @@ class BBCooker: bb.data.update_data(localdata) bb.data.expandKeys(localdata) + matched = set() def calc_bbfile_priority(filename): - for (regex, pri) in self.status.bbfile_config_priorities: + for _, _, regex, pri in self.status.bbfile_config_priorities: if regex.match(filename): + if not regex in matched: + matched.add(regex) return pri return 0 @@ -478,6 +481,11 @@ class BBCooker: for p in self.status.pkg_fn: self.status.bbfile_priority[p] = calc_bbfile_priority(p) + for collection, pattern, regex, _ in self.status.bbfile_config_priorities: + if not regex in matched: + bb.msg.warn(bb.msg.domain.Provider, "No bb files matched BBFILE_PATTERN_%s '%s'" % + (collection, pattern)) + def buildWorldTargetList(self): """ Build package list for "bitbake world" @@ -605,7 +613,7 @@ class BBCooker: continue try: pri = int(priority) - self.status.bbfile_config_priorities.append((cre, pri)) + self.status.bbfile_config_priorities.append((c, regex, cre, pri)) except ValueError: bb.msg.error(bb.msg.domain.Parsing, "invalid value for BBFILE_PRIORITY_%s: \"%s\"" % (c, priority)) |