The patch titled Subject: scripts/tags.sh: add a intermediate file for 'make gtags' has been added to the -mm tree. Its filename is scripts-add-a-intermediate-file-for-make-gtags.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/scripts-add-a-intermediate-file-for-make-gtags.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/scripts-add-a-intermediate-file-for-make-gtags.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: xujialu <xujialu@xxxxxxxxx> Subject: scripts/tags.sh: add a intermediate file for 'make gtags' As 'GTAGS Manual' said: If ´gtags.files´ exists in the current directory directory or a file is specified by the -f option, target files are limited by it. So add gtags.files just like cscope.files. Link: http://lkml.kernel.org/r/20200502052619.26457-3-xujialu@xxxxxxxxx Signed-off-by: xujialu <xujialu@xxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: Jonathan Corbet <corbet@xxxxxxx> Cc: Masahiro Yamada <masahiroy@xxxxxxxxxx> Cc: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- Makefile | 2 +- scripts/tags.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) --- a/Makefile~scripts-add-a-intermediate-file-for-make-gtags +++ a/Makefile @@ -1398,7 +1398,7 @@ MRPROPER_FILES += .config .config.old .v # Directories & files removed with 'make distclean' DISTCLEAN_DIRS += -DISTCLEAN_FILES += tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS +DISTCLEAN_FILES += tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS gtags.files # clean - Delete most, but leave enough to build external modules # --- a/scripts/tags.sh~scripts-add-a-intermediate-file-for-make-gtags +++ a/scripts/tags.sh @@ -142,7 +142,8 @@ docscope() dogtags() { - all_target_sources | gtags -i -f - + all_target_sources > gtags.files + gtags -i -f gtags.files } # Basic regular expressions with an optional /kind-spec/ for ctags and _ Patches currently in -mm which might be from xujialu@xxxxxxxxx are scripts-support-compiled-source-improved-precise.patch scripts-add-a-intermediate-file-for-make-gtags.patch