generic-poky/bitbake
Patrick Ohly da467519c2 bitbake: runqueue.py: always emit bb.event.DepTreeGenerated
The data included in the event is useful for implementing a pre-build
check that warns about unexpected components, for example because of
an incorrect configuration or changed dependencies.

Such a check can be done in a .bbclass that gets inherited
globally. But in contrast to a UI, such a class cannot request that
the event shall be emitted, and thus the event has to be emitted
whether there is a consumer or not.

This was done conditionally earlier out of concerns about the
performance impact. But now events are handled more efficiently, so
that concern no longer seems valid: in some simple testing (admittedly
on a fast build workstation), the two lines (generating the data and
emitting the event with it) only took about 0.05 seconds (measured
with timeit). That was for a build with roughly 500 recipes (from
pn-buildlist aka depgraph['pn']), triggered via the command line. That
was even with a consumer of the data active and doing some work, so it
should be even faster when there is no consumer.

(Bitbake rev: 5ddaf5b7ed1001d2dd3f67e7a6d704afa85479d2)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-14 23:05:14 +01:00
..
bin bitbake: bin/bitbake-worker: Fix invalid bb.msg.fatal usage 2016-05-13 13:41:32 +01:00
contrib bitbake: contrib/dump_cache.py, cache: Fix to use python 3 syntax 2016-05-13 13:41:32 +01:00
doc bitbake: bitbake-user-manual: Updated the 'bitbake -h' output example. 2016-04-18 16:20:50 +01:00
lib bitbake: runqueue.py: always emit bb.event.DepTreeGenerated 2016-05-14 23:05:14 +01:00
AUTHORS misc: Update the email address to a working one. 2011-01-04 14:36:54 +00:00
COPYING bitbake: Sync with upstream. 2007-01-08 23:53:01 +00:00
ChangeLog *: Fix typo in documentation 2010-08-04 16:12:39 +01:00
HEADER bitbake: Sync with upstream. 2007-01-08 23:53:01 +00:00
LICENSE bitbake: bitbake: update LICENSE file with QUnit details 2016-04-06 23:10:31 +01:00
toaster-requirements.txt bitbake: toaster: rework checking of Django version 2015-12-14 23:13:08 +00:00