diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2016-03-11 16:10:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-12 22:11:20 +0000 |
commit | e59547e4154b772a36f4e58f1d454c0c38653c84 (patch) | |
tree | 18a61304b6eac554a3743a49db49e1d0ca4e8bb7 /scripts/test-reexec | |
parent | 7256e5a9dba0652fe8361f3143771cb6371568b5 (diff) | |
download | openembedded-core-e59547e4154b772a36f4e58f1d454c0c38653c84.tar.gz openembedded-core-e59547e4154b772a36f4e58f1d454c0c38653c84.tar.bz2 openembedded-core-e59547e4154b772a36f4e58f1d454c0c38653c84.zip |
image-buildinfo.bbclass: fix performance problems
Inheriting image-buildinfo.bbclass primarily slowed down image
building for two reasons:
1. The content of the shell command "buildinfo" gets expanded
multiple times, each time again checking the state of all
layers.
2. When expanded as part of the actual image creation, git
is invoked under pseudo, which makes the check quite a bit
slower (from a few seconds to a minute with many layers).
To fix this, buildinfo now is a Python method which calls the checks
only when really executed. Pseudo is told to unload itself when
starting git.
In addition, "git diff" is invoked with "--quiet", which avoids
producing output that is just getting thrown away. As before, any kind
of problem or output causes the layer to be marked as "modified".
[Revision 2 of the change with some dead code removed]
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/test-reexec')
0 files changed, 0 insertions, 0 deletions