Rework the build scripts and dockerfiles with generic embedded targets

This commit is contained in:
Cameron Gutman
2023-09-19 23:43:43 +00:00
parent a8aef4714c
commit 72ec840806
34 changed files with 304 additions and 98 deletions

27
Dockerfile.rpi.bookworm Normal file
View File

@@ -0,0 +1,27 @@
FROM arm32v7/debian:bookworm
ENV TARGET=rpi
ENV DISTRO=bookworm
COPY scripts/install-base-deps.sh /opt/scripts/
RUN /bin/bash -c /opt/scripts/install-base-deps.sh && \
apt-get install -y --no-install-recommends gnupg && \
echo "deb http://archive.raspberrypi.org/debian/ $DISTRO main" >> /etc/apt/sources.list && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 82B129927FA3303E && \
apt-get update && \
apt-get install -y --no-install-recommends libraspberrypi-dev linux-libc-dev && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
COPY dav1d /opt/dav1d
COPY FFmpeg-rpi /opt/FFmpeg
COPY SDL2 /opt/SDL2
COPY SDL_ttf /opt/SDL_ttf
COPY scripts/build-deps.sh /opt/scripts/
RUN /bin/bash -c /opt/scripts/build-deps.sh
COPY scripts/build-package.sh /opt/scripts/
VOLUME "/out"
ENTRYPOINT [ "/bin/bash", "-c", "/opt/scripts/build-package.sh" ]