--- zzzz-none-000/linux-4.19.183/scripts/tags.sh 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/scripts/tags.sh 2023-06-28 08:54:21.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 +} + # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH if [ "${ALLSOURCE_ARCHS}" = "" ]; then ALLSOURCE_ARCHS=${SRCARCH} @@ -59,8 +73,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