Skip to content

Commit

Permalink
Merge pull request #13 from ublue-os/add-broadcom-wl
Browse files Browse the repository at this point in the history
feat: add broadcom legacy wl driver
  • Loading branch information
castrojo authored May 30, 2023
2 parents 8b950aa + 14b9def commit e37f02e
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 e37f02e

Please sign in to comment.