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:
34
PKGBUILD
34
PKGBUILD
@@ -59,7 +59,7 @@ else
|
|||||||
fi
|
fi
|
||||||
pkgname=("${pkgbase}" "${pkgbase}-headers")
|
pkgname=("${pkgbase}" "${pkgbase}-headers")
|
||||||
pkgver="${_basekernel}"."${_sub}"
|
pkgver="${_basekernel}"."${_sub}"
|
||||||
pkgrel=254
|
pkgrel=255
|
||||||
pkgdesc='Linux-tkg'
|
pkgdesc='Linux-tkg'
|
||||||
arch=('x86_64') # no i686 in here
|
arch=('x86_64') # no i686 in here
|
||||||
url="http://www.kernel.org/"
|
url="http://www.kernel.org/"
|
||||||
@@ -849,11 +849,11 @@ hackbase() {
|
|||||||
'nvidia-tkg: NVIDIA drivers for all installed kernels - non-dkms version.'
|
'nvidia-tkg: NVIDIA drivers for all installed kernels - non-dkms version.'
|
||||||
'nvidia-dkms-tkg: NVIDIA drivers for all installed kernels - dkms version.'
|
'nvidia-dkms-tkg: NVIDIA drivers for all installed kernels - dkms version.'
|
||||||
'update-grub: Simple wrapper around grub-mkconfig.')
|
'update-grub: Simple wrapper around grub-mkconfig.')
|
||||||
if [ -e "${srcdir}/winesync.rules" ]; then
|
#if [ -e "${srcdir}/winesync.rules" ]; then
|
||||||
provides=("linux=${pkgver}" "${pkgbase}" VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE WINESYNC-MODULE winesync-header)
|
# provides=("linux=${pkgver}" "${pkgbase}" VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE WINESYNC-MODULE winesync-header)
|
||||||
else
|
#else
|
||||||
provides=("linux=${pkgver}" "${pkgbase}" VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE)
|
provides=("linux=${pkgver}" "${pkgbase}" VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE)
|
||||||
fi
|
#fi
|
||||||
replaces=(virtualbox-guest-modules-arch wireguard-arch)
|
replaces=(virtualbox-guest-modules-arch wireguard-arch)
|
||||||
|
|
||||||
cd "${srcdir}/${_srcpath}"
|
cd "${srcdir}/${_srcpath}"
|
||||||
@@ -885,22 +885,22 @@ hackbase() {
|
|||||||
install -Dm644 "${srcdir}"/customization-full.cfg "${pkgdir}/usr/share/doc/${pkgbase}/customization.cfg"
|
install -Dm644 "${srcdir}"/customization-full.cfg "${pkgdir}/usr/share/doc/${pkgbase}/customization.cfg"
|
||||||
|
|
||||||
# workaround for missing header with winesync
|
# workaround for missing header with winesync
|
||||||
if [ -e "${srcdir}/${_srcpath}/include/uapi/linux/winesync.h" ]; then
|
#if [ -e "${srcdir}/${_srcpath}/include/uapi/linux/winesync.h" ]; then
|
||||||
msg2 "Workaround missing winesync header"
|
# msg2 "Workaround missing winesync header"
|
||||||
install -Dm644 "${srcdir}/${_srcpath}"/include/uapi/linux/winesync.h "${pkgdir}/usr/include/linux/winesync.h"
|
# install -Dm644 "${srcdir}/${_srcpath}"/include/uapi/linux/winesync.h "${pkgdir}/usr/include/linux/winesync.h"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# load winesync module at boot
|
# load winesync module at boot
|
||||||
if [ -e "${srcdir}/winesync.conf" ]; then
|
#if [ -e "${srcdir}/winesync.conf" ]; then
|
||||||
msg2 "Set the winesync module to be loaded at boot through /etc/modules-load.d"
|
# msg2 "Set the winesync module to be loaded at boot through /etc/modules-load.d"
|
||||||
install -Dm644 "${srcdir}"/winesync.conf "${pkgdir}/etc/modules-load.d/winesync.conf"
|
# install -Dm644 "${srcdir}"/winesync.conf "${pkgdir}/etc/modules-load.d/winesync.conf"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# install udev rule for winesync
|
# install udev rule for winesync
|
||||||
if [ -e "${srcdir}/winesync.rules" ]; then
|
#if [ -e "${srcdir}/winesync.rules" ]; then
|
||||||
msg2 "Installing udev rule for winesync"
|
# msg2 "Installing udev rule for winesync"
|
||||||
install -Dm644 "${srcdir}"/winesync.rules "${pkgdir}/etc/udev/rules.d/winesync.rules"
|
# install -Dm644 "${srcdir}"/winesync.rules "${pkgdir}/etc/udev/rules.d/winesync.rules"
|
||||||
fi
|
#fi
|
||||||
}
|
}
|
||||||
|
|
||||||
hackheaders() {
|
hackheaders() {
|
||||||
|
@@ -33,7 +33,7 @@ These alternative schedulers can offer a better performance/latency ratio for ga
|
|||||||
|
|
||||||
#### Optional tweaks
|
#### Optional tweaks
|
||||||
The `customization.cfg` file offers many toggles for extra tweaks:
|
The `customization.cfg` file offers many toggles for extra tweaks:
|
||||||
- `Fsync`, `Futex2` and `Fastsync+winesync` support: can improve the performance in games, needs a patched wine like [wine-tkg](https://github.com/Frogging-Family/wine-tkg-git)
|
- `Fsync` and `Futex2`(deprecated) support: can improve the performance in games, needs a patched wine like [wine-tkg](https://github.com/Frogging-Family/wine-tkg-git)
|
||||||
- [Graysky's per-CPU-arch native optimizations](https://github.com/graysky2/kernel_compiler_patch): tunes the compiled code to to a specified CPU
|
- [Graysky's per-CPU-arch native optimizations](https://github.com/graysky2/kernel_compiler_patch): tunes the compiled code to to a specified CPU
|
||||||
- Compile with GCC or Clang with optional `O2`/`O3` and `LTO` (Clang only) optimizations.
|
- Compile with GCC or Clang with optional `O2`/`O3` and `LTO` (Clang only) optimizations.
|
||||||
- **Warning regarding DKMS modules prior to v3.0.2 (2021-11-21) and Clang:** `DKMS` version v3.0.1 and earlier will default to using GCC, which will fail to build modules against a Clang-built kernel. This will - for example - break Nvidia drivers. Forcing older `DKMS` to use Clang can be done but isn't recommended.
|
- **Warning regarding DKMS modules prior to v3.0.2 (2021-11-21) and Clang:** `DKMS` version v3.0.1 and earlier will default to using GCC, which will fail to build modules against a Clang-built kernel. This will - for example - break Nvidia drivers. Forcing older `DKMS` to use Clang can be done but isn't recommended.
|
||||||
|
@@ -163,10 +163,6 @@ _futex2="true"
|
|||||||
# https://github.com/andrealmeid/futex_waitv_patches
|
# https://github.com/andrealmeid/futex_waitv_patches
|
||||||
_futex_waitv="false"
|
_futex_waitv="false"
|
||||||
|
|
||||||
# Set to "true" to enable support for winesync, an experimental replacement for esync - requires patched wine - https://repo.or.cz/linux/zf.git/shortlog/refs/heads/winesync
|
|
||||||
# ! Can't be used on multiple kernels installed side-by-side, which will require https://aur.archlinux.org/packages/winesync-dkms/ instead of this option !
|
|
||||||
_winesync="false"
|
|
||||||
|
|
||||||
# Set to "true" to enable Binder and Ashmem, the kernel modules required to use the android emulator Anbox. ! This doesn't apply to 5.4.y !
|
# Set to "true" to enable Binder and Ashmem, the kernel modules required to use the android emulator Anbox. ! This doesn't apply to 5.4.y !
|
||||||
_anbox=""
|
_anbox=""
|
||||||
|
|
||||||
|
@@ -1283,23 +1283,23 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\r
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# winesync support
|
# winesync support
|
||||||
tkgpatch="$srcdir/0007-v${_basekernel}-winesync.patch"
|
#tkgpatch="$srcdir/0007-v${_basekernel}-winesync.patch"
|
||||||
if [ -e "$tkgpatch" ]; then
|
#if [ -e "$tkgpatch" ]; then
|
||||||
if [ -z "$_winesync" ]; then
|
# if [ -z "$_winesync" ]; then
|
||||||
plain ""
|
# plain ""
|
||||||
plain "Enable support for winesync/fastsync, an experimental replacement for esync"
|
# plain "Enable support for winesync/fastsync, an experimental replacement for esync"
|
||||||
plain "https://repo.or.cz/linux/zf.git/shortlog/refs/heads/winesync"
|
# 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/"
|
# 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;
|
# read -rp "`echo $' > N/y : '`" CONDITION_winesync;
|
||||||
fi
|
# fi
|
||||||
if [[ "$CONDITION_winesync" =~ [yY] ]] || [ "$_winesync" = "true" ]; then
|
# if [[ "$CONDITION_winesync" =~ [yY] ]] || [ "$_winesync" = "true" ]; then
|
||||||
_msg="Patching winesync/fastsync support"
|
# _msg="Patching winesync/fastsync support"
|
||||||
_tkg_patcher
|
# _tkg_patcher
|
||||||
_module "WINESYNC"
|
# _module "WINESYNC"
|
||||||
echo "KERNEL==\"winesync\", MODE=\"0644\"" > ../winesync.rules
|
# echo "KERNEL==\"winesync\", MODE=\"0644\"" > ../winesync.rules
|
||||||
echo "winesync" > ../winesync.conf
|
# echo "winesync" > ../winesync.conf
|
||||||
fi
|
# fi
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# We're done with tkgpatch
|
# We're done with tkgpatch
|
||||||
unset tkgpatch
|
unset tkgpatch
|
||||||
|
Reference in New Issue
Block a user