From: Sergei Litvin <litvindev@gmail.com>
To: rust-for-linux@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, ojeda@kernel.org,
Sergei Litvin <litvindev@gmail.com>
Subject: [PATCH v2] scripts/tags.sh: fix "make COMPILED_SOURCE=1 cscope" command ends up with *.rlib, *.rmeta, *.so filenames in cscope.files
Date: Sat, 30 May 2026 10:58:21 +0200 [thread overview]
Message-ID: <20260530085821.19689-1-litvindev@gmail.com> (raw)
When executing the command `make COMPILED_SOURCE=1 cscope`, the `cscope.files`
file generated by it includes filenames with the extensions *.rlib, *.rmeta,
and *.so (taken from *.cmd files, which, in turn, are generated from *.d
dependency files by the `fixdep` utility).
Signed-off-by: Sergei Litvin <litvindev@gmail.com>
---
scripts/tags.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/scripts/tags.sh b/scripts/tags.sh
index 243373683f98..9a58fed694b7 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -84,15 +84,20 @@ find_other_sources()
all_sources()
{
find_arch_include_sources ${SRCARCH} '*.[chS]'
+ find_arch_include_sources ${SRCARCH} '*.rs'
if [ -n "$archinclude" ]; then
find_arch_include_sources $archinclude '*.[chS]'
+ find_arch_include_sources $archinclude '*.rs'
fi
find_include_sources '*.[chS]'
+ find_include_sources '*.rs'
for arch in $ALLSOURCE_ARCHS
do
find_arch_sources $arch '*.[chS]'
+ find_arch_sources $arch '*.rs'
done
find_other_sources '*.[chS]'
+ find_other_sources '*.rs'
}
all_compiled_sources()
@@ -100,7 +105,7 @@ all_compiled_sources()
{
echo include/generated/autoconf.h
find $ignore -name "*.cmd" -exec \
- grep -Poh '(?<=^ )\S+|(?<== )\S+[^\\](?=$)' {} \+ |
+ grep -Poh '(?<=^ )\S+\.([chS]|rs)|(?<== )\S+\.(?1)(?=$)' {} \+ |
awk '!a[$0]++'
} | xargs realpath -esq $([ -z "$KBUILD_ABS_SRCTREE" ] && echo --relative-to=.) |
sort -u
--
2.54.0
next reply other threads:[~2026-05-30 8:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-30 8:58 Sergei Litvin [this message]
2026-05-30 10:17 ` [PATCH v2] scripts/tags.sh: fix "make COMPILED_SOURCE=1 cscope" command ends up with *.rlib, *.rmeta, *.so filenames in cscope.files Miguel Ojeda
2026-06-01 21:18 ` [PATCH v3] " Sergei Litvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260530085821.19689-1-litvindev@gmail.com \
--to=litvindev@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox