Skip to content

Commit

Permalink
feat: Add gpd-fan driver kmod to extra for Bazzite
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Dec 27, 2024
1 parent 11ca890 commit eec5492
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containerfile.extra
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ RUN --mount=type=cache,dst=/var/cache/dnf \
/tmp/build-kmod-bmi260.sh && \
/tmp/build-kmod-facetimehd.sh && \
/tmp/build-kmod-gcadapter_oc.sh && \
/tmp/build-kmod-gpd-fan.sh && \
/tmp/build-kmod-nct6687d.sh && \
/tmp/build-kmod-rtl8814au.sh && \
/tmp/build-kmod-rtl88xxau.sh && \
Expand Down
18 changes: 18 additions & 0 deletions build-kmod-gpd-fan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

set -oeux pipefail

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

cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/_copr_ublue-os-akmods.repo /etc/yum.repos.d/

### BUILD gpd-fan (succeed or fail-fast with debug output)
dnf install -y \
akmod-gpd-fan-*.fc${RELEASE}.${ARCH}

Check warning on line 13 in build-kmod-gpd-fan.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

build-kmod-gpd-fan.sh#L13

Double quote to prevent globbing and word splitting.
akmods --force --kernels "${KERNEL}" --kmod gpd-fan
modinfo /usr/lib/modules/${KERNEL}/extra/gpd-fan/gpd-fan.ko.xz > /dev/null \

Check warning on line 15 in build-kmod-gpd-fan.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

build-kmod-gpd-fan.sh#L15

Double quote to prevent globbing and word splitting.
|| (find /var/cache/akmods/gpd-fan/ -name \*.log -print -exec cat {} \; && exit 1)

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

0 comments on commit eec5492

Please sign in to comment.