--- zzzz-none-000/linux-5.15.111/scripts/tags.sh 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/scripts/tags.sh 2024-02-07 10:23:31.000000000 +0000 @@ -32,6 +32,20 @@ ignore="$ignore ( -path ${tree}tools ) -prune -o" fi +# 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} @@ -61,8 +75,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