From a51dbe37467248825c9b2a6b068d928f85f783e0 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Sun, 16 Jul 2023 18:45:25 -0700 Subject: [PATCH] feat: Add steamdeck driver kmod --- Containerfile | 1 + build-kmod-steamdeck.sh | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 build-kmod-steamdeck.sh diff --git a/Containerfile b/Containerfile index 546c0a3a..4492beb2 100644 --- a/Containerfile +++ b/Containerfile @@ -18,6 +18,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-steamdeck.sh RUN mkdir -p /var/cache/rpms/{kmods,ublue-os} RUN cp /tmp/ublue-os-akmods-addons/rpmbuild/RPMS/noarch/ublue-os-akmods-addons*.rpm \ diff --git a/build-kmod-steamdeck.sh b/build-kmod-steamdeck.sh new file mode 100755 index 00000000..37b30cf1 --- /dev/null +++ b/build-kmod-steamdeck.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -oeux pipefail + +wget https://copr.fedorainfracloud.org/coprs/kylegospo/steamdeck-kmod/repo/fedora-$(rpm -E %fedora)/kylegospo-steamdeck-kmod-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-steamdeck-kmod.repo + +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) + +rm -f /etc/yum.repos.d/_copr_kylegospo-steamdeck-kmod.repo