Disable winesync support

Likely to be removed down the line. The DKMS version gives more flexibility and is less user-error prone.
This commit is contained in:
Tk-Glitch
2022-04-12 01:00:37 +02:00
parent 445a6b781a
commit b357a8c048
4 changed files with 35 additions and 39 deletions

View File

@@ -1283,23 +1283,23 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\r
fi
# winesync support
tkgpatch="$srcdir/0007-v${_basekernel}-winesync.patch"
if [ -e "$tkgpatch" ]; then
if [ -z "$_winesync" ]; then
plain ""
plain "Enable support for winesync/fastsync, an experimental replacement for esync"
plain "https://repo.or.cz/linux/zf.git/shortlog/refs/heads/winesync"
warning "Alternatively, on Arch you can use the DKMS module which allows for using the feature on multiple kernels side by side: https://aur.archlinux.org/packages/winesync-dkms/"
read -rp "`echo $' > N/y : '`" CONDITION_winesync;
fi
if [[ "$CONDITION_winesync" =~ [yY] ]] || [ "$_winesync" = "true" ]; then
_msg="Patching winesync/fastsync support"
_tkg_patcher
_module "WINESYNC"
echo "KERNEL==\"winesync\", MODE=\"0644\"" > ../winesync.rules
echo "winesync" > ../winesync.conf
fi
fi
#tkgpatch="$srcdir/0007-v${_basekernel}-winesync.patch"
#if [ -e "$tkgpatch" ]; then
# if [ -z "$_winesync" ]; then
# plain ""
# plain "Enable support for winesync/fastsync, an experimental replacement for esync"
# plain "https://repo.or.cz/linux/zf.git/shortlog/refs/heads/winesync"
# warning "Alternatively, on Arch you can use the DKMS module which allows for using the feature on multiple kernels side by side: https://aur.archlinux.org/packages/winesync-dkms/"
# read -rp "`echo $' > N/y : '`" CONDITION_winesync;
# fi
# if [[ "$CONDITION_winesync" =~ [yY] ]] || [ "$_winesync" = "true" ]; then
# _msg="Patching winesync/fastsync support"
# _tkg_patcher
# _module "WINESYNC"
# echo "KERNEL==\"winesync\", MODE=\"0644\"" > ../winesync.rules
# echo "winesync" > ../winesync.conf
# fi
#fi
# We're done with tkgpatch
unset tkgpatch