Skip to content

Commit abe3cca

Browse files
committed
feat(extra): add tuxedo-drivers (#129)
Signed-off-by: Etienne Schmidt <[email protected]>
1 parent f5b4cbc commit abe3cca

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

Containerfile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ARG VERSION_ARG
6262
ARG CI=1
6363
#endif /* CI_SETX */
6464

65-
#ifdef NVIDIA
65+
#ifdef NVIDIA
6666
ARG KMOD_MODULE_ARG
6767
#endif /* NVIDIA */
6868

@@ -88,6 +88,7 @@ RUN --mount=type=cache,dst=/var/cache/dnf \
8888
/tmp/build-kmod-framework-laptop.sh
8989
/tmp/build-kmod-kvmfr.sh
9090
/tmp/build-kmod-openrazer.sh
91+
/tmp/build-kmod-tuxedo-laptop.sh
9192
/tmp/build-kmod-v4l2loopback.sh
9293
/tmp/build-kmod-wl.sh
9394
/tmp/build-kmod-xone.sh
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/bash
2+
3+
set "${CI:+-x}" -euo pipefail
4+
5+
ARCH="$(rpm -E '%_arch')"
6+
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
7+
RELEASE="$(rpm -E '%fedora')"
8+
9+
curl -LsSf -o /etc/yum.repos.d/_copr_gladion136-tuxedo-drivers-kmod.repo "https://copr.fedorainfracloud.org/coprs/gladion136/tuxedo-drivers-kmod/repo/fedora-${RELEASE}/gladion136-tuxedo-drivers-kmod-fedora-${RELEASE}.repo"
10+
11+
### BUILD tuxedo-drivers (succeed or fail-fast with debug output)
12+
dnf install -y \
13+
"akmod-tuxedo-drivers-*.fc${RELEASE}.${ARCH}"
14+
akmods --force --kernels "${KERNEL}" --kmod tuxedo-drivers
15+
for module in /usr/lib/modules/${KERNEL}/extra/tuxedo-drivers/*.ko.xz; do
16+
modinfo "$module" > /dev/null \
17+
|| (find /var/cache/akmods/tuxedo-drivers/ -name \*.log -print -exec cat {} \; && exit 1)
18+
done
19+
20+
rm -f /etc/yum.repos.d/_copr_gladion136-tuxedo-drivers-kmod.repo

0 commit comments

Comments
 (0)