mirror of
https://github.com/ublue-os/akmods.git
synced 2026-11-03 23:09:54 -09:00
feat: Add gpd fan driver (#285)
This commit is contained in:
parent
fdc89938c2
commit
502cef6655
2 changed files with 21 additions and 0 deletions
|
|
@ -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 && \
|
||||
|
|
|
|||
18
build-kmod-gpd-fan.sh
Executable file
18
build-kmod-gpd-fan.sh
Executable file
|
|
@ -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}
|
||||
akmods --force --kernels "${KERNEL}" --kmod gpd-fan
|
||||
modinfo /usr/lib/modules/${KERNEL}/extra/gpd-fan/gpd-fan.ko.xz > /dev/null \
|
||||
|| (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…
Reference in a new issue