Skip to content

Commit

Permalink
feat: Add xpad-noone driver
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Aug 27, 2023
1 parent 4007e0c commit 205d07f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Containerfile.common
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ RUN /tmp/build-kmod-steamdeck.sh
RUN /tmp/build-kmod-v4l2loopback.sh
RUN /tmp/build-kmod-wl.sh
RUN /tmp/build-kmod-xpadneo.sh
RUN /tmp/build-kmod-xpad-noone.sh
RUN /tmp/build-kmod-xone.sh

RUN cp /tmp/ublue-os-akmods-addons/rpmbuild/RPMS/noarch/ublue-os-akmods-addons*.rpm \
/var/cache/rpms/ublue-os/
Expand Down
19 changes: 19 additions & 0 deletions build-kmod-xpad-noone.sh
Original file line number Diff line number Diff line change
@@ -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 --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
RELEASE="$(rpm -E '%fedora')"


### BUILD xpad-noone (succeed or fail-fast with debug output)
rpm-ostree install \
akmod-xpad-noone-*.fc${RELEASE}.${ARCH}
akmods --force --kernels "${KERNEL}" --kmod xpad-noone
modinfo /usr/lib/modules/${KERNEL}/extra/xpad-noone/xpad.ko.xz > /dev/null \
|| (find /var/cache/akmods/xpad-noone/ -name \*.log -print -exec cat {} \; && exit 1)

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

0 comments on commit 205d07f

Please sign in to comment.