diff options
author | 2024-10-25 02:09:22 +0900 | |
---|---|---|
committer | 2024-11-06 22:39:58 +0900 | |
commit | 397a479b511df4e6e7c665d7d8991943645b4cab (patch) | |
tree | 9aa128c06080af33a0b5c2869ed36151e667090f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | kconfig: document the positional argument in the help message (diff) | |
download | wireguard-linux-397a479b511df4e6e7c665d7d8991943645b4cab.tar.xz wireguard-linux-397a479b511df4e6e7c665d7d8991943645b4cab.zip |
kbuild: simplify rustfmt target
There is no need to prune the rust/alloc directory because it was
removed by commit 9d0441bab775 ("rust: alloc: remove our fork of the
`alloc` crate").
There is no need to prune the rust/test directory because no '*.rs'
files are generated within it.
To avoid forking the 'grep -Fv generated' process, filter out generated
files using the option, ! -name '*generated*'.
Now that the '-path ... -prune' option is no longer used, there is no
need to use the absolute path. Searching in $(srctree), which can be
a relative path, is sufficient.
The comment mentions the use case where $(srctree) is '..', that is,
$(objtree) is a sub-directory of $(srctree). In this scenario, all
'*.rs' files under $(objtree) are generated files and filters out by
the '*generated*' pattern.
Add $(RCS_FIND_IGNORE) as a shortcut. Although I do not believe '*.rs'
files would exist under the .git directory, there is no need for the
'find' command to traverse it.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions