Skip to content

Commit

Permalink
feat: Add gcadapter_oc driver kmod
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Jul 17, 2023
1 parent a51dbe3 commit 33487af
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,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 /tmp/build-kmod-gcadapter_oc.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 \
Expand Down
17 changes: 17 additions & 0 deletions build-kmod-gcadapter_oc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

set -oeux pipefail

wget https://copr.fedorainfracloud.org/coprs/kylegospo/gcadapter_oc-dkms/repo/fedora-$(rpm -E %fedora)/kylegospo-gcadapter_oc-dkms-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-gcadapter_oc-dkms.repo

ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
RELEASE="$(rpm -E '%fedora')"

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

rm -f /etc/yum.repos.d/_copr_kylegospo-gcadapter_oc-dkms.repo

0 comments on commit 33487af

Please sign in to comment.