diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-10-08 21:05:53 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-03 11:27:10 +0200 |
commit | a1d0c6e2f334963d381f45b5fa65196a0f4ee7b4 (patch) | |
tree | 0d616b5788789607eed8737438fabe07b9380fd3 /kernel/fail_function.c | |
parent | eb914bae6e174b68c4050899af8b8b0109399ca5 (diff) | |
download | linux-stable-a1d0c6e2f334963d381f45b5fa65196a0f4ee7b4.tar.gz linux-stable-a1d0c6e2f334963d381f45b5fa65196a0f4ee7b4.tar.bz2 linux-stable-a1d0c6e2f334963d381f45b5fa65196a0f4ee7b4.zip |
kheaders: optimize md5sum calculation for in-tree builds
commit 0e11773e76098729552b750ccff79374d1e62002 upstream.
This script computes md5sum of headers in srctree and in objtree.
However, when we are building in-tree, we know the srctree and the
objtree are the same. That is, we end up with the same computation
twice. In fact, the first two lines of kernel/kheaders.md5 are always
the same for in-tree builds.
Unify the two md5sum calculations.
For in-tree builds ($building_out_of_srctree is empty), we check
only two directories, "include", and "arch/$SRCARCH/include".
For out-of-tree builds ($building_out_of_srctree is 1), we check
4 directories, "$srctree/include", "$srctree/arch/$SRCARCH/include",
"include", and "arch/$SRCARCH/include" since we know they are all
different.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/fail_function.c')
0 files changed, 0 insertions, 0 deletions