Skip to content

Commit

Permalink
Attempting to test Framework kmod, probably not good enough for produ…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
Matt Campbell committed Mar 5, 2024
1 parent 4a3ab2f commit 26555e8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containerfile.common
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ RUN if grep -qv "surface" <<< "${KERNEL_FLAVOR}"; then \
/tmp/build-kmod-steamdeck.sh \
; fi && \
/tmp/build-kmod-ayaneo-platform.sh && \
/tmp/build-framework-laptop-tests.sh && \
/tmp/build-kmod-ayn-platform.sh && \
/tmp/build-kmod-bmi160.sh && \
/tmp/build-kmod-bmi260.sh && \
Expand Down
17 changes: 17 additions & 0 deletions build-kmod-framework-laptop-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

set -oeux pipefail

cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/_copr_ublue-os-akmods.repo /etc/yum.repos.d/

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

rpm-ostree install \
akmod-ayaneo-platform-*.fc${RELEASE}.${ARCH}
akmods --force --kernels "${KERNEL}" --kmod ayaneo-platform
modinfo /usr/lib/modules/${KERNEL}/extra/framework-laptop-tests/framework-laptop-kmod.ko.xz > /dev/null \
|| (find /var/cache/akmods/framework-laptop-tests/ -name \*.log -print -exec cat {} \; && exit 1)

rm -f /etc/yum.repos.d/_copr_ublue-os-akmods.repo

0 comments on commit 26555e8

Please sign in to comment.