Skip to content

Commit

Permalink
Merge pull request #41 from ublue-os/steamos-3.5
Browse files Browse the repository at this point in the history
feat: Upgrade to steamdeck drivers from SteamOS 3.5
  • Loading branch information
KyleGospo authored Jul 21, 2023
2 parents 4ffea31 + 383b5f9 commit 8e0e7d1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN /tmp/build-ublue-os-akmods-addons.sh

RUN /tmp/build-kmod-v4l2loopback.sh
RUN /tmp/build-kmod-xpadneo.sh
RUN /tmp/build-kmod-jupiter.sh
RUN /tmp/build-kmod-steamdeck.sh
RUN /tmp/build-kmod-gcadapter_oc.sh

RUN mkdir -p /var/cache/rpms/{kmods,ublue-os}
Expand Down
17 changes: 0 additions & 17 deletions build-kmod-jupiter.sh

This file was deleted.

21 changes: 21 additions & 0 deletions build-kmod-steamdeck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/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')"

rpm-ostree install \
akmod-steamdeck-*.fc${RELEASE}.${ARCH}
akmods --force --kernels "${KERNEL}" --kmod steamdeck
modinfo /usr/lib/modules/${KERNEL}/extra/steamdeck/steamdeck.ko.xz > /dev/null \
|| (find /var/cache/akmods/steamdeck/ -name \*.log -print -exec cat {} \; && exit 1)
modinfo /usr/lib/modules/${KERNEL}/extra/steamdeck/steamdeck-hwmon.ko.xz > /dev/null \
|| (find /var/cache/akmods/steamdeck/ -name \*.log -print -exec cat {} \; && exit 1)
modinfo /usr/lib/modules/${KERNEL}/extra/steamdeck/{extcon,leds}-steamdeck.ko.xz > /dev/null \
|| (find /var/cache/akmods/steamdeck/ -name \*.log -print -exec cat {} \; && exit 1)

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

0 comments on commit 8e0e7d1

Please sign in to comment.