Skip to content

Commit

Permalink
feat: add broadcom legacy wl driver
Browse files Browse the repository at this point in the history
Closes ublue-os#3
  • Loading branch information
bsherman committed May 30, 2023
1 parent 8b950aa commit 14b9def
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN /tmp/build-prep.sh
RUN /tmp/build-ublue-os-akmods-key.sh

RUN /tmp/build-kmod-v4l2loopback.sh
RUN /tmp/build-kmod-wl.sh

RUN mkdir /var/cache/rpms && \
for RPM in $(find /var/cache/akmods/ -type f -name \*.rpm); do \
Expand Down
16 changes: 16 additions & 0 deletions build-kmod-wl.sh
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 14b9def

Please sign in to comment.