diff options
Diffstat (limited to 'bitbake/lib')
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index a1cd4d750e..b708943682 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -436,9 +436,26 @@ class BBCooker: | |||
| 436 | # Calculate priorities for each file | 436 | # Calculate priorities for each file |
| 437 | for p in self.status.pkg_fn: | 437 | for p in self.status.pkg_fn: |
| 438 | self.status.bbfile_priority[p] = calc_bbfile_priority(p) | 438 | self.status.bbfile_priority[p] = calc_bbfile_priority(p) |
| 439 | |||
| 440 | # Don't show the warning if the BBFILE_PATTERN did match .bbappend files | ||
| 441 | unmatched = set() | ||
| 442 | for _, _, regex, pri in self.status.bbfile_config_priorities: | ||
| 443 | if not regex in matched: | ||
| 444 | unmatched.add(regex) | ||
| 445 | |||
| 446 | def findmatch(regex): | ||
| 447 | for bbfile in self.appendlist: | ||
| 448 | for append in self.appendlist[bbfile]: | ||
| 449 | if regex.match(append): | ||
| 450 | return True | ||
| 451 | return False | ||
| 452 | |||
| 453 | for unmatch in unmatched.copy(): | ||
| 454 | if findmatch(unmatch): | ||
| 455 | unmatched.remove(unmatch) | ||
| 439 | 456 | ||
| 440 | for collection, pattern, regex, _ in self.status.bbfile_config_priorities: | 457 | for collection, pattern, regex, _ in self.status.bbfile_config_priorities: |
| 441 | if not regex in matched: | 458 | if regex in unmatched: |
| 442 | collectlog.warn("No bb files matched BBFILE_PATTERN_%s '%s'" % (collection, pattern)) | 459 | collectlog.warn("No bb files matched BBFILE_PATTERN_%s '%s'" % (collection, pattern)) |
| 443 | 460 | ||
| 444 | def findConfigFiles(self, varname): | 461 | def findConfigFiles(self, varname): |
