summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorSchmidt, Adriaan <adriaan.schmidt@siemens.com>2022-05-06 14:10:33 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-17 15:05:08 +0000
commit9940cd4d8d7b424ec209a446519dd97c3840dcd4 (patch)
tree393d4131a4e043ee5376b29411a31d7a946cef2b /bitbake
parentf0d06b5563ac83b7049e65662deadcae9a7f00de (diff)
downloadpoky-9940cd4d8d7b424ec209a446519dd97c3840dcd4.tar.gz
bitbake: bitbake-diffsigs: break on first dependent task difference
compare_sigfiles() recursively calculates differences on all dependent tasks with changed hashes. This is done in arbitrary/alphabetical order, and only the last of those results is returned, while everything else is discarded. This changes the behavior to instead return the first difference and not calculate any more, which significantly speeds up diffs of tasks with many dependencies. (Bitbake rev: 89f13cd4a927a73de98998c27082c63b07671525) Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit ea6a676c9aa2864c2eff40eea41ba09ce903a651) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/siggen.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index cea3a5380b..0a9ce0ede3 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -1028,6 +1028,7 @@ def compare_sigfiles(a, b, recursecb=None, color=False, collapsed=False):
1028 # If a dependent hash changed, might as well print the line above and then defer to the changes in 1028 # If a dependent hash changed, might as well print the line above and then defer to the changes in
1029 # that hash since in all likelyhood, they're the same changes this task also saw. 1029 # that hash since in all likelyhood, they're the same changes this task also saw.
1030 output = [output[-1]] + recout 1030 output = [output[-1]] + recout
1031 break
1031 1032
1032 a_taint = a_data.get('taint', None) 1033 a_taint = a_data.get('taint', None)
1033 b_taint = b_data.get('taint', None) 1034 b_taint = b_data.get('taint', None)