Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add gpd fan driver #285

Merged
merged 5 commits into from
Dec 27, 2024
Merged
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
3 changes: 3 additions & 0 deletions Containerfile.extra
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ RUN --mount=type=cache,dst=/var/cache/dnf \
/tmp/build-kmod-zenergy.sh && \
/tmp/build-kmod-evdi.sh \
; fi && \
if [[ "${FEDORA_MAJOR_VERSION}" -ge 41 ]]; then \
/tmp/build-kmod-gpd-fan.sh \
; fi && \
/tmp/build-kmod-ayaneo-platform.sh && \
/tmp/build-kmod-ayn-platform.sh && \
/tmp/build-kmod-bmi260.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
Loading