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

View File

@@ -1,11 +1,12 @@
FROM arm32v7/debian:buster
ENV TARGET=rpi
ENV DISTRO=buster
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/ buster main" >> /etc/apt/sources.list && \
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 && \