--- zzzz-none-000/linux-4.4.271/scripts/tags.sh 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/scripts/tags.sh 2023-04-19 10:22:30.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