--- zzzz-none-000/linux-4.1.52/scripts/tags.sh 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/scripts/tags.sh 2022-03-02 11:37:14.000000000 +0000 @@ -28,6 +28,20 @@ # ignore userspace tools ignore="$ignore ( -path ${tree}tools ) -prune -o" +# get all AVM subprojects, with an optional path suffix +avm_subprojects_path() +{ + local suffix="$1" + local path + + for subproject in ${AVM_SUBPROJECTS_PATHS}; do + path="${tree}${subproject}/${suffix}" + if [ -e "${path}" ]; then + echo "${path}" + fi + done +} + # Find all available archs find_all_archs() { @@ -68,8 +82,8 @@ # find sources in include/ find_include_sources() { - find ${tree}include $ignore -name config -prune -o -name "$1" \ - -not -type l -print; + find ${tree}include $(avm_subprojects_path include) $ignore \ + -name config -prune -o -name "$1" -not -type l -print; } # find sources in rest of tree