From 9250eff1415410318ef9fa506cdd9a405cb54d4f Mon Sep 17 00:00:00 2001 From: "J.P. Zivalich" Date: Tue, 17 Dec 2024 12:00:49 +0100 Subject: [PATCH 1/3] feat: Add universal-pidff for direct drive wheels Signed-off-by: J.P. Zivalich --- Containerfile.extra | 1 + README.md | 1 + build-kmod-universal-pidff.sh | 17 +++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100755 build-kmod-universal-pidff.sh diff --git a/Containerfile.extra b/Containerfile.extra index 8a3b8edd..d1e76ce7 100644 --- a/Containerfile.extra +++ b/Containerfile.extra @@ -50,6 +50,7 @@ RUN --mount=type=cache,dst=/var/cache/dnf \ /tmp/build-kmod-rtl8814au.sh && \ /tmp/build-kmod-rtl88xxau.sh && \ /tmp/build-kmod-ryzen-smu.sh && \ + /tmp/build-kmod-universal-pidff.sh && \ /tmp/build-kmod-vhba.sh && \ /tmp/build-kmod-VirtualBox.sh && \ /tmp/dual-sign.sh && \ diff --git a/README.md b/README.md index bada4b5d..30a184a7 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ The `nvidia` stream image contains | [rtl8814au](https://github.com/morrownr/8814au) | extra | Realtek RTL8814AU Driver | [![badge](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/rtl8814au-kmod/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/rtl8814au-kmod) | | [rtl88xxau](https://github.com/aircrack-ng/rtl8812au) | extra | Realtek RTL8812AU/21AU and RTL8814AU driver | [![badge](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/rtl88xxau-kmod/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/rtl88xxau-kmod) | | [ryzen-smu](https://gitlab.com/leogx9r/ryzen_smu) | extra | A Linux kernel driver that exposes access to the SMU (System Management Unit) for certain AMD Ryzen Processors | [![badge](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/ryzen-smu-kmod/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/ryzen-smu-kmod) | +| [universal-pidff](https://github.com/JacKeTUs/universal-pidff) | extra | Direct Drive racing wheel force feedback | [![badge](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/universal-pidff-kmod/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/universal-pidff-kmod) | | [v4l2loopback](https://github.com/umlaeute/v4l2loopback) | common | allows creating "virtual video devices" | [RPMFusion - free](https://rpmfusion.org/) | | [wl](https://github.com/rpmfusion/broadcom-wl/) | common | support for some legacy broadcom wifi devices | [RPMFusion - nonfree](https://rpmfusion.org/) | | [xpadneo](https://github.com/atar-axis/xpadneo) | common | xbox one controller bluetooth driver | [negativo17 - fedora-multimedia](https://negativo17.org/) | diff --git a/build-kmod-universal-pidff.sh b/build-kmod-universal-pidff.sh new file mode 100755 index 00000000..5da56ce1 --- /dev/null +++ b/build-kmod-universal-pidff.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -oeux pipefail + +ARCH="$(rpm -E '%_arch')" +KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" +RELEASE="$(rpm -E '%fedora')" + +cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/_copr_ublue-os-akmods.repo /etc/yum.repos.d/ + +dnf install -y \ + akmod-universal-pidff-*.fc${RELEASE}.${ARCH} +akmods --force --kernels "${KERNEL}" --kmod universal-pidff +modinfo /usr/lib/modules/${KERNEL}/extra/universal-pidff/universal-pidff.ko.xz > /dev/null \ +|| (find /var/cache/akmods/universal-pidff/ -name \*.log -print -exec cat {} \; && exit 1) + +rm -f /etc/yum.repos.d/_copr_ublue-os-akmods.repo From e1fd4b0701d977424fdd9a4ceacf07ba4c67cadc Mon Sep 17 00:00:00 2001 From: "J.P. Zivalich" Date: Tue, 17 Dec 2024 12:13:15 +0100 Subject: [PATCH 2/3] fix: Add quotes Signed-off-by: J.P. Zivalich --- build-kmod-universal-pidff.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-kmod-universal-pidff.sh b/build-kmod-universal-pidff.sh index 5da56ce1..b51ce1bb 100755 --- a/build-kmod-universal-pidff.sh +++ b/build-kmod-universal-pidff.sh @@ -9,9 +9,9 @@ RELEASE="$(rpm -E '%fedora')" cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/_copr_ublue-os-akmods.repo /etc/yum.repos.d/ dnf install -y \ - akmod-universal-pidff-*.fc${RELEASE}.${ARCH} + akmod-universal-pidff-*.fc"${RELEASE}.${ARCH}" akmods --force --kernels "${KERNEL}" --kmod universal-pidff -modinfo /usr/lib/modules/${KERNEL}/extra/universal-pidff/universal-pidff.ko.xz > /dev/null \ +modinfo /usr/lib/modules/"${KERNEL}"/extra/universal-pidff/universal-pidff.ko.xz > /dev/null \ || (find /var/cache/akmods/universal-pidff/ -name \*.log -print -exec cat {} \; && exit 1) rm -f /etc/yum.repos.d/_copr_ublue-os-akmods.repo From 24e7b6f72b45543ba7df5e1259ac3876d9d70ce6 Mon Sep 17 00:00:00 2001 From: "J.P. Zivalich" Date: Tue, 17 Dec 2024 20:55:46 +0100 Subject: [PATCH 3/3] chore: Retrigger builds Signed-off-by: J.P. Zivalich --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 30a184a7..c52d617f 100644 --- a/README.md +++ b/README.md @@ -119,3 +119,4 @@ These images are signed with sisgstore's [cosign](https://docs.sigstore.dev/cosi ## Metrics ![Alt](https://repobeats.axiom.co/api/embed/a7ddeb1a3d2e0ce534ccf7cfa75c33b35183b106.svg "Repobeats analytics image") +