Merge pull request #119 from sched-ext/htejun

scheds/sync-to-kernel.sh: Drop most schedulers from sync
This commit is contained in:
David Vernet 2024-02-02 14:20:02 -06:00 committed by GitHub
commit 7cbcc16be9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,16 +8,21 @@ if [ $# -ne 1 ]; then
fi
# We sync these schedulers
rust_scheds=(scx_rusty scx_layered)
c_scheds=(scx_simple scx_qmap scx_central scx_pair scx_flatcg scx_userland)
rust_scheds=()
c_scheds=(scx_simple scx_qmap)
headers=($(git ls-files include | grep -v include/vmlinux))
scheds=($(git ls-files ${rust_scheds[@]/#/rust/} | grep -Ev 'meson.build|LICENSE'))
kernel="$1/tools/sched_ext"
scheds=()
for rust_sched in ${rust_scheds[@]}; do
scheds+=($(git ls-files rust/${rust_sched} | grep -Ev 'meson.build|LICENSE'))
done
for c_sched in ${c_scheds[@]}; do
scheds+=($(git ls-files c/${c_sched}*))
done
kernel="$1/tools/sched_ext"
echo "Syncing ${#headers[@]} headers and ${#scheds[@]} scheduler source files to $kernel"
srcs=("${headers[@]}" "${scheds[@]}")