linux511-tkg: Add an udev rule for winesync

This commit is contained in:
Tk-Glitch 2021-03-13 23:28:19 +01:00
parent 05128199df
commit b682f0d862
2 changed files with 9 additions and 0 deletions

View File

@ -544,6 +544,12 @@ hackbase() {
# install customization file, for reference
install -Dm644 "${srcdir}"/customization-full.cfg "${pkgdir}/usr/share/doc/${pkgbase}/customization.cfg"
# 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
}
hackheaders() {

View File

@ -1110,6 +1110,8 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\n
if [[ "$CONDITION_winesync" =~ [yY] ]] || [ "$_winesync" = "true" ]; then
msg2 "Patching winesync support"
tkgpatch="$srcdir/0007-v${_basekernel}-winesync.patch" && _tkg_patcher
echo "CONFIG_WINESYNC=m" >> ./.config
echo "KERNEL==\"winesync\", MODE=\"0644\"" > ../winesync.rules
fi
# ZFS fix
@ -1319,6 +1321,7 @@ exit_cleanup() {
rm -rf "$srcdir"/*.xz
rm -rf "$srcdir"/*.patch
rm -rf "$srcdir"/*-profile.cfg
rm -rf "$srcdir"/*.rules
rm -f "$srcdir"/config.x86_64
rm -f "$srcdir"/customization.cfg