diff options
author | Jialu Xu <xujialu@vimux.org> | 2023-06-01 03:04:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-01 20:01:57 +0200 |
commit | 82089b00ae026f638277c51bf3f36c68ed4021c7 (patch) | |
tree | ee685f943009caafbc3a1476433cc3c9a58eb52a /scripts | |
parent | Merge tag 'w1-drv-6.5' of https://git.kernel.org/pub/scm/linux/kernel/git/krz... (diff) | |
download | linux-82089b00ae026f638277c51bf3f36c68ed4021c7.tar.xz linux-82089b00ae026f638277c51bf3f36c68ed4021c7.zip |
scripts/tags.sh: improve compiled sources generation
Use grep instead of sed for all compiled sources generation, it is three
times more efficient.
Signed-off-by: Jialu Xu <xujialu@vimux.org>
Tested-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20230601010402.71040-1-xujialu@vimux.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tags.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh index ea31640b2671..938dba219534 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -98,7 +98,7 @@ all_compiled_sources() { echo include/generated/autoconf.h find $ignore -name "*.cmd" -exec \ - sed -n -E 's/^source_.* (.*)/\1/p; s/^ (\S.*) \\/\1/p' {} \+ | + grep -Poh '(?<=^ )\S+|(?<== )\S+[^\\](?=$)' {} \+ | awk '!a[$0]++' } | xargs realpath -esq $([ -z "$KBUILD_ABS_SRCTREE" ] && echo --relative-to=.) | sort -u |