diff --git a/Containerfile.common b/Containerfile.common index 3ffce826..014f3026 100644 --- a/Containerfile.common +++ b/Containerfile.common @@ -42,6 +42,7 @@ RUN if grep -qv "surface" <<< "${KERNEL_FLAVOR}"; then \ /tmp/build-kmod-ryzen-smu.sh && \ /tmp/build-kmod-steamdeck.sh && \ /tmp/build-kmod-v4l2loopback.sh && \ + /tmp/build-kmod-winesync.sh && \ /tmp/build-kmod-wl.sh && \ if grep -qv "39" <<< ${FEDORA_MAJOR_VERSION}; then \ /tmp/build-kmod-evdi.sh && \ diff --git a/README.md b/README.md index c15b3fd8..c31c8d48 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ Feel free to PR more kmod build scripts into this repo! - [ryzen_smu](https://gitlab.com/leogx9r/ryzen_smu) - A Linux kernel driver that exposes access to the SMU (System Management Unit) for certain AMD Ryzen Processors (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) - [steamdeck](https://lkml.org/lkml/2022/2/5/391) - platform driver for Valve's Steam Deck handheld PC (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) - [v4l2loopback](https://github.com/umlaeute/v4l2loopback) - allows creating "virtual video devices" +- [winesync](https://repo.or.cz/linux/zf.git/shortlog/refs/heads/winesync4) - Support for Winesync/Fastsync/NTSync primitives - [wl (broadcom)](https://github.com/rpmfusion/broadcom-wl/) - support for some legacy broadcom wifi devices - [xpadneo](https://github.com/atar-axis/xpadneo) - xbox one controller bluetooth driver (akmod from [negativo17 steam repo](https://negativo17.org/steam/) - [xpad-noone](https://github.com/ublue-os/xpad-noone) - xbox/xbox 360 controller driver (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) diff --git a/build-kmod-winesync.sh b/build-kmod-winesync.sh new file mode 100755 index 00000000..e28f90bc --- /dev/null +++ b/build-kmod-winesync.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +set -oeux pipefail + +cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/_copr_ublue-os-akmods.repo /etc/yum.repos.d/ + +ARCH="$(rpm -E '%_arch')" +KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" +RELEASE="$(rpm -E '%fedora')" + + +### BUILD winesync (succeed or fail-fast with debug output) +rpm-ostree install \ + akmod-winesync-*.fc${RELEASE}.${ARCH} +akmods --force --kernels "${KERNEL}" --kmod winesync +modinfo /usr/lib/modules/${KERNEL}/extra/winesync/winesync.ko.xz > /dev/null \ +|| (find /var/cache/akmods/winesync/ -name \*.log -print -exec cat {} \; && exit 1) + +rm -f /etc/yum.repos.d/_copr_ublue-os-akmods.repo