From eb65c8ce3d79f4224f2bfb231fcbff9c47d00973 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Sun, 17 Sep 2023 00:45:05 -0700 Subject: [PATCH] feat: Add nct6687 kernel module for certain B550 chipset motherboards Closes #62 --- Containerfile.common | 1 + build-kmod-nct6687d.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100755 build-kmod-nct6687d.sh diff --git a/Containerfile.common b/Containerfile.common index 4de71251..2134209d 100644 --- a/Containerfile.common +++ b/Containerfile.common @@ -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 diff --git a/build-kmod-nct6687d.sh b/build-kmod-nct6687d.sh new file mode 100755 index 00000000..39e25c07 --- /dev/null +++ b/build-kmod-nct6687d.sh @@ -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