Makefile: Skip symbolic links to files for cscope
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 8 Oct 2019 18:12:45 +0000 (21:12 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 16 Oct 2019 22:09:26 +0000 (18:09 -0400)
commite15a951da4db145bbcf659931f4bd4c5344ddb97
tree010581e3d3154fdcc106cc403ee612a337f54e56
parentcb578f0a87e685e74c4028eddf0ad1c810723716
Makefile: Skip symbolic links to files for cscope

cscope complains that it can't find files that appears to be symbolic links

cscope: cannot find file tools/binman/test/u_boot_binman_syms_bad.c
cscope: cannot find file tools/version.h

`find -L` tests properties, but name, and cscope can't cope with symbolic
links (a lot of bugs in upstream were simple closed as kinda invalid).

To work around the problem, exclude symbolic links from the cscope.files.
Note, it's done in two pass to speed up the process (`-exec realpath ...`
approach is not portable and introduces a 3x delay).

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Makefile