forked from mirrors/linux
		
	scripts/tags.sh: collect compiled source precisely
Parse compiled source from *.cmd but don't 'find' too many files that are not related to compilation. [xujialu@vimux.org: don't expand symlinks by add option -s for realpath] Link: http://lkml.kernel.org/r/5efc5bfb.1c69fb81.41bf5.7131SMTPIN_ADDED_MISSING@mx.google.com Signed-off-by: Jialu Xu <xujialu@vimux.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Masahiro Yamada <masahiroy@kernel.org> Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Joe Perches <joe@perches.com> Link: http://lkml.kernel.org/r/5ee5d8e3.1c69fb81.9b804.47b2SMTPIN_ADDED_MISSING@mx.google.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									d830020656
								
							
						
					
					
						commit
						4f491bb6ea
					
				
					 1 changed files with 4 additions and 14 deletions
				
			
		| 
						 | 
					@ -91,20 +91,10 @@ all_sources()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
all_compiled_sources()
 | 
					all_compiled_sources()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	for i in $(all_sources); do
 | 
						realpath -es $([ -z "$KBUILD_ABS_SRCTREE" ] && echo --relative-to=.) \
 | 
				
			||||||
		case "$i" in
 | 
							include/generated/autoconf.h $(find -name "*.cmd" -exec \
 | 
				
			||||||
			*.[cS])
 | 
							grep -Poh '(?(?=^source_.* \K).*|(?=^  \K\S).*(?= \\))' {} \+ |
 | 
				
			||||||
				j=${i/\.[cS]/\.o}
 | 
							awk '!a[$0]++') | sort -u
 | 
				
			||||||
				j="${j#$tree}"
 | 
					 | 
				
			||||||
				if [ -e $j ]; then
 | 
					 | 
				
			||||||
					echo $i
 | 
					 | 
				
			||||||
				fi
 | 
					 | 
				
			||||||
				;;
 | 
					 | 
				
			||||||
			*)
 | 
					 | 
				
			||||||
				echo $i
 | 
					 | 
				
			||||||
				;;
 | 
					 | 
				
			||||||
		esac
 | 
					 | 
				
			||||||
	done
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
all_target_sources()
 | 
					all_target_sources()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue