--- zzzz-none-000/linux-5.4.213/scripts/tags.sh 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/scripts/tags.sh 2024-05-29 11:20:02.000000000 +0000 @@ -28,6 +28,29 @@ # 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() +{ + ALLSOURCE_ARCHS="" + for arch in `ls ${tree}arch`; do + ALLSOURCE_ARCHS="${ALLSOURCE_ARCHS} "${arch##\/} + done +} + # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH if [ "${ALLSOURCE_ARCHS}" = "" ]; then ALLSOURCE_ARCHS=${SRCARCH} @@ -57,8 +80,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