Allow mm-Support-soft-dirty-flag patches on all kernels as long as the patches are available.

Effectively allows 5.11 and up, while it was bound to 5.11 and 5.12 before.

Also fix the first patch on 5.14, thanks to @Tatsh - Fixes https://github.com/Frogging-Family/linux-tkg/issues/298
This commit is contained in:
Tk-Glitch
2021-08-31 22:13:08 +02:00
parent 6d3d3e78e3
commit b5da16cc45
3 changed files with 26 additions and 27 deletions

View File

@@ -420,11 +420,9 @@ _tkg_srcprep() {
_msg="Applying misc additions patch" && _tkg_patcher
fi
if [ "$_basever" = "511" ] || [ "$_basever" = "512" ]; then
_msg="Applying patches for WRITE_WATCH support in Wine"
tkgpatch="$srcdir/0001-mm-Support-soft-dirty-flag-reset-for-VA-range.patch" && _tkg_patcher
tkgpatch="$srcdir/0002-mm-Support-soft-dirty-flag-read-with-reset.patch" && _tkg_patcher
fi
_msg="Applying patches for WRITE_WATCH support in Wine"
tkgpatch="$srcdir/0001-mm-Support-soft-dirty-flag-reset-for-VA-range.patch" && _tkg_patcher
tkgpatch="$srcdir/0002-mm-Support-soft-dirty-flag-read-with-reset.patch" && _tkg_patcher
# prjc/bmq patch rev
if [ "$_basever" = "58" ] || [ "$_basever" = "57" ]; then