diff --git a/Containerfile b/Containerfile index c73d7822..e114bd53 100644 --- a/Containerfile +++ b/Containerfile @@ -24,6 +24,7 @@ RUN /tmp/build-kmod-gcadapter_oc.sh RUN /tmp/build-kmod-openrgb.sh RUN /tmp/build-kmod-steamdeck.sh RUN /tmp/build-kmod-v4l2loopback.sh +RUN /tmp/build-kmod-wl.sh RUN /tmp/build-kmod-xpadneo.sh RUN mkdir -p /var/cache/rpms/{kmods,ublue-os} diff --git a/README.md b/README.md index 5ac056d1..78b7ebae 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ Feel free to PR more kmod build scripts into this repo! - [openrgb](https://gitlab.com/CalcProgrammer1/OpenRGB/-/raw/master/OpenRGB.patch) - kernel module with i2c-nct6775 and patched i2c-piix4 for use with OpenRGB (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) - [steamdeck](https://lkml.org/lkml/2022/2/5/391) - platform driver for Valve's Steam Deck handheld PC (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) - [v4l2loopback](https://github.com/umlaeute/v4l2loopback) - allows creating "virtual video devices" +- [wl (broadcom)](https://github.com/rpmfusion/broadcom-wl/) - support for some legacy broadcom wifi devices - [xpadneo](https://github.com/atar-axis/xpadneo) - xbox one controller bluetooth driver (akmod from [negativo17 steam repo](https://negativo17.org/steam/) Temporarily disabled due to disabling other controllers: diff --git a/build-kmod-wl.sh b/build-kmod-wl.sh new file mode 100755 index 00000000..1e7a6254 --- /dev/null +++ b/build-kmod-wl.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +set -oeux pipefail + + +ARCH="$(rpm -E '%_arch')" +KERNEL="$(rpm -q kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" +RELEASE="$(rpm -E '%fedora')" + + +### BUILD wl (succeed or fail-fast with debug output) +rpm-ostree install \ + akmod-wl-*.fc${RELEASE}.${ARCH} +akmods --force --kernels "${KERNEL}" --kmod wl +modinfo /usr/lib/modules/${KERNEL}/extra/wl/wl.ko.xz > /dev/null \ +|| (find /var/cache/akmods/wl/ -name \*.log -print -exec cat {} \; && exit 1)