Last active
July 19, 2025 11:47
-
-
Save bademux/7840241be9622835701ee134bbe9fa70 to your computer and use it in GitHub Desktop.
Build latest pspi drivers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#docker buildx create --name multiarch --driver docker-container --use | |
#docker buildx build --progress=plain --platform linux/arm64,linux/arm/v7 --output type=tar,dest=out.tar . | |
FROM scratch AS caching-downloader | |
ADD https://github.com/othermod/PSPi-Version-6/archive/refs/heads/main.tar.gz /pspi.tar.gz | |
FROM debian:12-slim AS builder | |
RUN apt update && apt install -y --no-install-recommends ca-certificates wget gpg | |
RUN echo "deb [signed-by=/etc/apt/keyrings/raspberrypi.gpg] https://archive.raspberrypi.org/debian bookworm main" > /etc/apt/sources.list.d/raspberrypi.list | |
RUN wget -qO - https://archive.raspberrypi.org/debian/raspberrypi.gpg.key | gpg --dearmor -o /etc/apt/keyrings/raspberrypi.gpg | |
RUN apt update | |
RUN apt install -y --no-install-recommends build-essential libraspberrypi-dev libpng-dev libasound2-dev | |
RUN adduser --system --group user | |
USER user | |
COPY --chown=user --from=caching-downloader / /home/user | |
WORKDIR /home/user | |
RUN tar -zxvf pspi.tar.gz --strip-components=1 | |
WORKDIR /home/user/rpi/drivers | |
RUN rm -rf bin/* && make && uname -a > bin/buildplatform.txt | |
FROM scratch AS export-stage | |
COPY --from=builder /home/user/rpi/drivers/bin / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment