Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Containerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ RUN --mount=type=cache,dst=/var/cache/dnf \
/tmp/build-kmod-framework-laptop.sh
/tmp/build-kmod-kvmfr.sh
/tmp/build-kmod-openrazer.sh
/tmp/build-kmod-tuxedo-laptop.sh
/tmp/build-kmod-v4l2loopback.sh
/tmp/build-kmod-wl.sh
/tmp/build-kmod-xone.sh
Expand Down
20 changes: 20 additions & 0 deletions build_files/common/build-kmod-tuxedo-laptop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/bash

set "${CI:+-x}" -euo pipefail

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you only building for Fedora?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, should I build for others too? I tried to keep it similar to the kvmfr script (https://copr.fedorainfracloud.org/coprs/hikariknight/looking-glass-kvmfr/).


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"

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

rm -f /etc/yum.repos.d/_copr_gladion136-tuxedo-drivers-kmod.repo