Skip to content

Commit

Permalink
feat: Add universal-pidff for direct drive wheels
Browse files Browse the repository at this point in the history
Signed-off-by: J.P. Zivalich <[email protected]>
  • Loading branch information
JPZ13 committed Dec 17, 2024
1 parent fdc8993 commit 9250eff
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containerfile.extra
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/) |
Expand Down
17 changes: 17 additions & 0 deletions build-kmod-universal-pidff.sh
Original file line number Diff line number Diff line change
@@ -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}

Check warning on line 12 in build-kmod-universal-pidff.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

build-kmod-universal-pidff.sh#L12

Double quote to prevent globbing and word splitting.
akmods --force --kernels "${KERNEL}" --kmod universal-pidff
modinfo /usr/lib/modules/${KERNEL}/extra/universal-pidff/universal-pidff.ko.xz > /dev/null \

Check warning on line 14 in build-kmod-universal-pidff.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

build-kmod-universal-pidff.sh#L14

Double quote to prevent globbing and word splitting.
|| (find /var/cache/akmods/universal-pidff/ -name \*.log -print -exec cat {} \; && exit 1)

rm -f /etc/yum.repos.d/_copr_ublue-os-akmods.repo

0 comments on commit 9250eff

Please sign in to comment.