summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-06-24 10:53:36 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:37 +0100
commit04b2a788378fd45e7312a1dc393daf1993d92ab2 (patch)
tree2a201f23394d60ebe814d064bdc6e981d12dae3a /bitbake/lib/bb
parentecbd5ca720ce28284280dc60013b3f60e9dd934f (diff)
downloadopenembedded-core-04b2a788378fd45e7312a1dc393daf1993d92ab2.tar.gz
openembedded-core-04b2a788378fd45e7312a1dc393daf1993d92ab2.tar.bz2
openembedded-core-04b2a788378fd45e7312a1dc393daf1993d92ab2.zip
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. (Bitbake rev: b781317b5006bc047a59e7fa3c93344115e78ccb) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/cooker.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 6884e9a554..7fbfb5beb5 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -446,9 +446,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
@@ -467,6 +470,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"
@@ -594,7 +602,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))