Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tags: Use $SRCARCH

$ make mrproper
$ make tags
GEN tags
find: `arch/x86_64/': No such file or directory

Caused by commit f81b1be (tags: include headers before source files)

Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>

+2 -2
+2 -2
scripts/tags.sh
··· 5 5 # mode may be any of: tags, TAGS, cscope 6 6 # 7 7 # Uses the following environment variables: 8 - # ARCH, SUBARCH, srctree, src, obj 8 + # ARCH, SUBARCH, SRCARCH, srctree, src, obj 9 9 10 10 if [ "$KBUILD_VERBOSE" = "1" ]; then 11 11 set -x ··· 70 70 71 71 all_sources() 72 72 { 73 - find_arch_include_sources ${ARCH} '*.[chS]' 73 + find_arch_include_sources ${SRCARCH} '*.[chS]' 74 74 if [ ! -z "$archinclude" ]; then 75 75 find_arch_include_sources $archinclude '*.[chS]' 76 76 fi