From ee08c3469762657c3fe9a0e97d96f57e9e9bb4d2 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Wed, 24 Apr 2024 08:01:04 -0700 Subject: [PATCH] chore: Restore gcadapter_oc --- Containerfile.common | 1 + README.md | 1 + build-kmod-gcadapter_oc.sh | 17 +++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 build-kmod-gcadapter_oc.sh diff --git a/Containerfile.common b/Containerfile.common index ad219410..fc6f6b75 100644 --- a/Containerfile.common +++ b/Containerfile.common @@ -42,6 +42,7 @@ RUN if grep -qv "surface" <<< "${KERNEL_FLAVOR}"; then \ ; fi && \ /tmp/build-kmod-ayaneo-platform.sh && \ /tmp/build-kmod-ayn-platform.sh && \ + /tmp/build-kmod-gcadapter_oc.sh && \ /tmp/build-kmod-kvmfr.sh && \ /tmp/build-kmod-nct6687d.sh && \ /tmp/build-kmod-openrazer.sh && \ diff --git a/README.md b/README.md index 269595f3..16c0fb53 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Feel free to PR more kmod build scripts into this repo! - [ayn-platform](https://github.com/ShadowBlip/ayn-platform) - Linux drivers for AYN x86 handhelds (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) - [evdi](www.displaylink.com) - kernel module required for use of displaylink (akmod from [negativo17 multimedia repo](https://negativo17.org/multimedia/) - [framework-laptop](https://github.com/DHowett/framework-laptop-kmod) - A kernel module that exposes the Framework Laptop (13, 16)'s battery charge limit and LEDs to userspace (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) +- [gcadapter_oc](https://github.com/hannesmann/gcadapter-oc-kmod) - kernel module for overclocking the Nintendo Wii U/Mayflash GameCube adapter (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) - [kvmfr](https://github.com/gnif/looking-glass) - KVM framebuffer relay kernel module for use with Looking Glass (akmod from [hikariknight/looking-glass-kvmfr-akmod copr](https://copr.fedorainfracloud.org/coprs/hikariknight/looking-glass-kvmfr/)) - [nct6687d](https://github.com/Fred78290/nct6687d) - Linux kernel module for Nuvoton NCT6687-R found on AMD B550 chipset motherboards (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) - [nvidia](https://rpmfusion.org/Howto/NVIDIA) - nvidia GPU drivers built from rpmfusion diff --git a/build-kmod-gcadapter_oc.sh b/build-kmod-gcadapter_oc.sh new file mode 100644 index 00000000..b75b21d7 --- /dev/null +++ b/build-kmod-gcadapter_oc.sh @@ -0,0 +1,17 @@ +#!/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/ + +rpm-ostree install \ + akmod-gcadapter_oc-*.fc${RELEASE}.${ARCH} +akmods --force --kernels "${KERNEL}" --kmod gcadapter_oc +modinfo /usr/lib/modules/${KERNEL}/extra/gcadapter_oc/gcadapter_oc.ko.xz > /dev/null \ +|| (find /var/cache/akmods/gcadapter_oc/ -name \*.log -print -exec cat {} \; && exit 1) + +rm -f /etc/yum.repos.d/_copr_ublue-os-akmods.repo