Search notes:

Kernel compilation: Create tag files

The four make targets tags, TAGS, ctags and gtags create tag files that can be used in editors to find identifiers in source files.
These targets implicitly call the scripts/tags.sh script.
$ make tags
…
xargs: ctags: No such file or directory
ctags is not installed. I try universal-ctags (Alternatively, there would also be exuberant-ctags);
$ sudo apt install -y universal-ctags
Try again
$ make tags
The command now succeeded and created the tags file. It is more than 1 GB:
$ ls -lh tags | cut -d ' ' -f 5
1.3G

TODO

Test the $COMPILED_SOURCE environment variable.
make ctags requires ctags to be installed.

Index