Correct applying fsyncs patches on kernels 5.12 and below (#350)
* prepare: Fix missing of futex_waitv patches for kernel 5.12 and below * cfg: Minor message/comment tweak
This commit is contained in:
@@ -148,7 +148,7 @@ _acs_override=""
|
|||||||
_bcachefs=""
|
_bcachefs=""
|
||||||
|
|
||||||
# Set to "true" to enable support for fsync, an experimental replacement for esync found in Valve Proton 4.11+ - https://steamcommunity.com/games/221410/announcements/detail/2957094910196249305
|
# Set to "true" to enable support for fsync, an experimental replacement for esync found in Valve Proton 4.11+ - https://steamcommunity.com/games/221410/announcements/detail/2957094910196249305
|
||||||
# Can be enabled alongside _futex_waitv on 5.14+ to use it as a fallback for older Proton builds
|
# Can be enabled alongside _futex_waitv on 5.13+ to use it as a fallback for older Proton builds
|
||||||
_fsync="true"
|
_fsync="true"
|
||||||
|
|
||||||
# Set to "true" to enable support for futex2, an experimental interface that can be used by proton-tkg and proton 5.13 experimental through Fsync - Can be enabled alongside fsync to use it as a fallback
|
# Set to "true" to enable support for futex2, an experimental interface that can be used by proton-tkg and proton 5.13 experimental through Fsync - Can be enabled alongside fsync to use it as a fallback
|
||||||
|
@@ -1078,6 +1078,8 @@ _tkg_srcprep() {
|
|||||||
_tkg_patcher
|
_tkg_patcher
|
||||||
_futex2="false"
|
_futex2="false"
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
_futex_waitv="false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fsync support
|
# fsync support
|
||||||
@@ -1120,7 +1122,8 @@ _tkg_srcprep() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$_futex2" = "true" ] && [ "$_futex_waitv" != "true" ] && [ "$_basever" != "54" ] && [ "$_basever" != "57" ] && [ "$_basever" != "58" ] && [ "$_basever" != "59" ]; then
|
if ( [ "$_futex2" = "true" ] && [ -e "$srcdir/0007-v${_basekernel}-futex2_interface.patch" ] ) \
|
||||||
|
&& ( [ "$_futex_waitv" != "true" ] && [ -e "$srcdir/0007-v${_basekernel}-futex_waitv.patch" ] ); then
|
||||||
sed -i -e 's/# CONFIG_EXPERT is not set/CONFIG_EXPERT=y/' ./.config
|
sed -i -e 's/# CONFIG_EXPERT is not set/CONFIG_EXPERT=y/' ./.config
|
||||||
echo -e "\r# start of config expert\r
|
echo -e "\r# start of config expert\r
|
||||||
# CONFIG_DEBUG_RSEQ is not set\r
|
# CONFIG_DEBUG_RSEQ is not set\r
|
||||||
|
Reference in New Issue
Block a user