Skip to content
Snippets Groups Projects
Commit 21773790 authored by Kevin Hao's avatar Kevin Hao Committed by Andrew Morton
Browse files

scripts/tags.sh: fix the Kconfig tags generation when using latest ctags

The Kconfig language has already been built-in in the latest ctags, so it
would error exit if we try to define it as an user-defined language via
'--langdef=kconfig'.  This results that there is no Kconfig tags in the
final tag file.  Fix this by skipping the user Kconfig definition for the
latest ctags.

Link: https://lkml.kernel.org/r/20230128064916.912744-1-haokexin@gmail.com


Signed-off-by: default avatarKevin Hao <haokexin@gmail.com>
Reviewed-by: default avatarCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Nicolas Schier <nicolas@fjasle.eu>
Cc: Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Cc: Vipin Sharma <vipinsh@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 602ce7b8
No related branches found
No related tags found
No related merge requests found
...@@ -264,10 +264,12 @@ exuberant() ...@@ -264,10 +264,12 @@ exuberant()
--$CTAGS_EXTRA=+fq --c-kinds=+px --fields=+iaS --langmap=c:+.h \ --$CTAGS_EXTRA=+fq --c-kinds=+px --fields=+iaS --langmap=c:+.h \
"${regex[@]}" "${regex[@]}"
setup_regex exuberant kconfig KCONFIG_ARGS=()
all_kconfigs | xargs $1 -a \ if ! $1 --list-languages | grep -iq kconfig; then
--langdef=kconfig --language-force=kconfig "${regex[@]}" setup_regex exuberant kconfig
KCONFIG_ARGS=(--langdef=kconfig --language-force=kconfig "${regex[@]}")
fi
all_kconfigs | xargs $1 -a "${KCONFIG_ARGS[@]}"
} }
emacs() emacs()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment