summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-12-13 20:07:10 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-14 12:25:07 +0000
commit797a8ee040e5f5eca1973478daddb3c18fef8c5e (patch)
treeeffad3a4734b4024ce230433ca9fd1edc151ca95 /bitbake/lib/bb/cooker.py
parent8f8a9ef66930ef8375050e80c751dab5ba024d83 (diff)
downloadpoky-797a8ee040e5f5eca1973478daddb3c18fef8c5e.tar.gz
bitbake: cooker: allow buildFile warning to be hidden programmatically
If we want to use this function/command internally, we don't want this warning shown. (Bitbake rev: 5cfbb60833e7b12d698c1c2970c17ccf2a4971bf) Signed-off-by: Paul Eggleton <paul.eggleton@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.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 48904a52d6..a4aaac59f8 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1334,15 +1334,16 @@ class BBCooker:
1334 raise NoSpecificMatch 1334 raise NoSpecificMatch
1335 return matches[0] 1335 return matches[0]
1336 1336
1337 def buildFile(self, buildfile, task): 1337 def buildFile(self, buildfile, task, hidewarning=False):
1338 """ 1338 """
1339 Build the file matching regexp buildfile 1339 Build the file matching regexp buildfile
1340 """ 1340 """
1341 bb.event.fire(bb.event.BuildInit(), self.expanded_data) 1341 bb.event.fire(bb.event.BuildInit(), self.expanded_data)
1342 1342
1343 # Too many people use -b because they think it's how you normally 1343 if not hidewarning:
1344 # specify a target to be built, so show a warning 1344 # Too many people use -b because they think it's how you normally
1345 bb.warn("Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.") 1345 # specify a target to be built, so show a warning
1346 bb.warn("Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.")
1346 1347
1347 # Parse the configuration here. We need to do it explicitly here since 1348 # Parse the configuration here. We need to do it explicitly here since
1348 # buildFile() doesn't use the cache 1349 # buildFile() doesn't use the cache