Ignore "include/generated/*" and "arch/*/include/generated/*" files while creating tags like it's done for "include/config/*".
Signed-off-by: Kirill Tkhai <tk...@yandex.ru> CC: Michal Marek <mma...@suse.cz> --- scripts/tags.sh | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index 58c4559..92ef5b7 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -48,7 +48,8 @@ find_arch_sources() for i in $archincludedir; do prune="$prune -wholename $i -prune -o" done - find ${tree}arch/$1 $ignore $subarchprune $prune -name "$2" -print; + find ${tree}arch/$1 $ignore -path arch/$1/include/generated -prune -o \ + $subarchprune $prune -name "$2" -print; } # find sources in arch/$1/include @@ -65,7 +66,9 @@ find_arch_include_sources() # find sources in include/ find_include_sources() { - find ${tree}include $ignore -name config -prune -o -name "$1" -print; + find ${tree}include $ignore \ + \( -path include/generated -o -path include/config \) -prune -o \ + -name "$1" -print; } # find sources in rest of tree -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/