Skip to content

Commit

Permalink
feat: Add nct6687 kernel module for certain B550 chipset motherboards
Browse files Browse the repository at this point in the history
Closes #62
  • Loading branch information
KyleGospo committed Sep 17, 2023
1 parent 48bf5aa commit eb65c8c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containerfile.common
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ RUN /tmp/build-ublue-os-akmods-addons.sh
RUN /tmp/build-kmod-evdi.sh
RUN /tmp/build-kmod-gasket.sh
RUN /tmp/build-kmod-gcadapter_oc.sh
RUN /tmp/build-kmod-nct6687d.sh
RUN /tmp/build-kmod-openrazer.sh
RUN /tmp/build-kmod-openrgb.sh
RUN /tmp/build-kmod-ryzen-smu.sh
Expand Down
19 changes: 19 additions & 0 deletions build-kmod-nct6687d.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

set -oeux pipefail

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

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


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

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

0 comments on commit eb65c8c

Please sign in to comment.