summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-07-19 11:56:00 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 08:41:11 +0100
commit192b2e15369fd052e5e4d5f70c5f5d83d50c2b5b (patch)
treeda880a5de29cb5c67d460a04c48859e09377ec4f /bitbake/lib/bb/command.py
parent579b811233d6183089e9687fc96fafae1932bc5c (diff)
downloadpoky-192b2e15369fd052e5e4d5f70c5f5d83d50c2b5b.tar.gz
bitbake: tinfoil: add internal mode to build_file() function
In OE's devtool we want to repeatedly run build_file() without showing unnecessary messages and triggering buildhistory for each call. build_file() is just a wrapper around the buildFile command. Change the final "hidewarning" parameter of the buildFile command to "internal" and have this call a new buildFileInternal() function without triggering any of the normal build events, silencing the normal info messages from the runqueue ("Executing RunQueue Tasks", "Tasks Summary" etc.) and avoiding calling parseConfiguration() which we've already done at this point. (Bitbake rev: ba53e067a2d448dd63b4ca252557ce98aa8e6321) 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/command.py')
-rw-r--r--bitbake/lib/bb/command.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index eb7c86f4fe..c06ab072ad 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -548,11 +548,14 @@ class CommandsAsync:
548 bfile = params[0] 548 bfile = params[0]
549 task = params[1] 549 task = params[1]
550 if len(params) > 2: 550 if len(params) > 2:
551 hidewarning = params[2] 551 internal = params[2]
552 else: 552 else:
553 hidewarning = False 553 internal = False
554 554
555 command.cooker.buildFile(bfile, task, hidewarning) 555 if internal:
556 command.cooker.buildFileInternal(bfile, task, fireevents=False, quietlog=True)
557 else:
558 command.cooker.buildFile(bfile, task)
556 buildFile.needcache = False 559 buildFile.needcache = False
557 560
558 def buildTargets(self, command, params): 561 def buildTargets(self, command, params):