diff --git a/PKGBUILD b/PKGBUILD index 39782ec..38f2220 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -59,7 +59,7 @@ else fi pkgname=("${pkgbase}" "${pkgbase}-headers") pkgver="${_basekernel}"."${_sub}" -pkgrel=254 +pkgrel=255 pkgdesc='Linux-tkg' arch=('x86_64') # no i686 in here url="http://www.kernel.org/" @@ -849,11 +849,11 @@ hackbase() { 'nvidia-tkg: NVIDIA drivers for all installed kernels - non-dkms version.' 'nvidia-dkms-tkg: NVIDIA drivers for all installed kernels - dkms version.' 'update-grub: Simple wrapper around grub-mkconfig.') - if [ -e "${srcdir}/winesync.rules" ]; then - provides=("linux=${pkgver}" "${pkgbase}" VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE WINESYNC-MODULE winesync-header) - else + #if [ -e "${srcdir}/winesync.rules" ]; then + # provides=("linux=${pkgver}" "${pkgbase}" VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE WINESYNC-MODULE winesync-header) + #else provides=("linux=${pkgver}" "${pkgbase}" VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE) - fi + #fi replaces=(virtualbox-guest-modules-arch wireguard-arch) cd "${srcdir}/${_srcpath}" @@ -885,22 +885,22 @@ hackbase() { install -Dm644 "${srcdir}"/customization-full.cfg "${pkgdir}/usr/share/doc/${pkgbase}/customization.cfg" # workaround for missing header with winesync - if [ -e "${srcdir}/${_srcpath}/include/uapi/linux/winesync.h" ]; then - msg2 "Workaround missing winesync header" - install -Dm644 "${srcdir}/${_srcpath}"/include/uapi/linux/winesync.h "${pkgdir}/usr/include/linux/winesync.h" - fi + #if [ -e "${srcdir}/${_srcpath}/include/uapi/linux/winesync.h" ]; then + # msg2 "Workaround missing winesync header" + # install -Dm644 "${srcdir}/${_srcpath}"/include/uapi/linux/winesync.h "${pkgdir}/usr/include/linux/winesync.h" + #fi # load winesync module at boot - if [ -e "${srcdir}/winesync.conf" ]; then - 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" - fi + #if [ -e "${srcdir}/winesync.conf" ]; then + # 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" + #fi # install udev rule for winesync - if [ -e "${srcdir}/winesync.rules" ]; then - msg2 "Installing udev rule for winesync" - install -Dm644 "${srcdir}"/winesync.rules "${pkgdir}/etc/udev/rules.d/winesync.rules" - fi + #if [ -e "${srcdir}/winesync.rules" ]; then + # msg2 "Installing udev rule for winesync" + # install -Dm644 "${srcdir}"/winesync.rules "${pkgdir}/etc/udev/rules.d/winesync.rules" + #fi } hackheaders() { diff --git a/README.md b/README.md index 4cca037..853b593 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ These alternative schedulers can offer a better performance/latency ratio for ga #### Optional 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 - 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. diff --git a/customization.cfg b/customization.cfg index 0285c1e..114a6e9 100644 --- a/customization.cfg +++ b/customization.cfg @@ -163,10 +163,6 @@ _futex2="true" # https://github.com/andrealmeid/futex_waitv_patches _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 ! _anbox="" diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 1d2608e..1247ddb 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -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