feat: Swap xonedo kmod with OGC version provided by Terra.

This commit is contained in:
Kyle Gospodnetich 2026-03-15 22:53:29 -07:00
parent 06eff5a062
commit ab77f0ab72
4 changed files with 23 additions and 26 deletions

View file

@ -84,7 +84,7 @@ RUN --mount=type=cache,dst=/var/cache/dnf \
/tmp/build-kmod-openrazer.sh
/tmp/build-kmod-v4l2loopback.sh
/tmp/build-kmod-wl.sh
/tmp/build-kmod-xone.sh
/tmp/build-kmod-xonedo.sh
RUNEOF
#elif defined NVIDIA

View file

@ -50,7 +50,7 @@ The `nvidia` and `nvidia-open` images contains
| common | [openrazer](https://openrazer.github.io/) | kernel module adding additional features to Razer hardware | [![badge](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/openrazer-kmod/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/openrazer-kmod) |
| common | [v4l2loopback](https://github.com/umlaeute/v4l2loopback) | allows creating "virtual video devices" | [RPMFusion - free](https://rpmfusion.org/) |
| common | [wl](https://github.com/rpmfusion/broadcom-wl/) | support for some legacy broadcom wifi devices | [RPMFusion - nonfree](https://rpmfusion.org/) |
| common | [xone](https://github.com/BoukeHaarsma23/xonedo/) | xbox one controller USB wired/RF driver modified to work along-side xpad | [![badge](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/xone-kmod/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/xone-kmod) |
| common | [xonedo](https://github.com/BoukeHaarsma23/xonedo/) | xbox one controller USB wired/RF driver modified to work along-side xpad | [Terra](https://repos.fyralabs.com/) |
| nvidia-open | [nvidia](https://negativo17.org/nvidia-driver/) | nvidia-open GPU drivers | [negativo17 - fedora-nvidia](https://negativo17.org/) |
| zfs | [zfs](https://github.com/openzfs/zfs) | OpenZFS advanced file system and volume manager | [zfs](https://github.com/openzfs/zfs) |

View file

@ -1,24 +0,0 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo 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/
### BUILD xone (succeed or fail-fast with debug output)
dnf install -y \
akmod-xone-*.fc"${RELEASE}"."${ARCH}"
akmods --force --kernels "${KERNEL}" --kmod xone
modinfo /usr/lib/modules/"${KERNEL}"/extra/xone/xone_{dongle,gip,gip_gamepad,gip_headset,gip_chatpad,gip_madcatz_strat,gip_madcatz_glam,gip_pdp_jaguar}.ko.xz > /dev/null \
|| (find /var/cache/akmods/xone/ -name \*.log -print -exec cat {} \; && exit 1)
mkdir -p /var/cache/rpms/common
dnf download --destdir /var/cache/rpms/common \
xone-kmod-common
rm -f /var/cache/rpms/common/*.src.rpm
rm -f /etc/yum.repos.d/_copr_ublue-os-akmods.repo

View file

@ -0,0 +1,21 @@
#!/usr/bin/bash
set "${CI:+-x}" -euo pipefail
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
RELEASE="$(rpm -E '%fedora')"
TERRA_REPO="--nogpgcheck --repofrompath=terra,https://repos.fyralabs.com/terra${RELEASE}"
### BUILD xonedo (succeed or fail-fast with debug output)
dnf install -y ${TERRA_REPO} \
xonedo xonedo-firmware xonedo-kmod
akmods --force --kernels "${KERNEL}" --kmod xonedo
modinfo /usr/lib/modules/"${KERNEL}"/extra/xone/xone_{dongle,gip,gip_gamepad,gip_headset,gip_chatpad,gip_madcatz_strat,gip_madcatz_glam,gip_pdp_jaguar}.ko.xz > /dev/null \
|| (find /var/cache/akmods/xonedo/ -name \*.log -print -exec cat {} \; && exit 1)
mkdir -p /var/cache/rpms/common
dnf download ${TERRA_REPO} --destdir /var/cache/rpms/common \
xonedo xonedo-firmware xonedo-kmod
rm -f /var/cache/rpms/common/*.src.rpm