mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
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>
This commit is contained in:
parent
dbf87ab2ea
commit
82089b00ae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user