Skip to content

Commit

Permalink
Add facetimehd kmod.
Browse files Browse the repository at this point in the history
  • Loading branch information
mulderje committed Apr 1, 2024
1 parent d63466f commit b5e2825
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containerfile.common
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ RUN if grep -qv "surface" <<< "${KERNEL_FLAVOR}"; then \
/tmp/build-kmod-bmi160.sh && \
/tmp/build-kmod-bmi260.sh && \
/tmp/build-kmod-bmi323.sh && \
/tmp/build-kmod-facetimehd.sh && \
/tmp/build-kmod-gcadapter_oc.sh && \
/tmp/build-kmod-nct6687d.sh && \
/tmp/build-kmod-openrazer.sh && \
Expand Down
19 changes: 19 additions & 0 deletions build-kmod-facetimehd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

set -oeux pipefail

wget https://copr.fedorainfracloud.org/coprs/mulderje/facetimehd-kmod/repo/fedora-$(rpm -E %fedora)/mulderje-facetimehd-kmod-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_mulderje-facetimehd-kmod.repo

ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
RELEASE="$(rpm -E '%fedora')"

### BUILD facetimehd (succeed or fail-fast with debug output)
rpm-ostree install \
akmod-facetimehd-*.fc${RELEASE}.${ARCH} \
facetimehd-firmware
akmods --force --kernels "${KERNEL}" --kmod facetimehd
modinfo /usr/lib/modules/${KERNEL}/extra/facetimehd/facetimehd.ko.xz > /dev/null \
|| (find /var/cache/akmods/facetimehd/ -name \*.log -print -exec cat {} \; && exit 1)

rm -f /etc/yum.repos.d/_copr_mulderje-facetimehd-kmod.repo

0 comments on commit b5e2825

Please sign in to comment.