1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-22 17:44:22 +00:00

Download toolchain for the local platform as well

This commit is contained in:
Steffo 2023-03-19 21:23:32 +01:00
parent 184aaba069
commit 92a2f1bea5
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -6,13 +6,13 @@ RUN apt-get update && \
apt-get upgrade --assume-yes
RUN \
if [ ${TARGETPLATFORM} = "linux/amd64" ]; then \
if [ ${BUILDPLATFORM} = "linux/amd64" ] || [ ${TARGETPLATFORM} = "linux/amd64" ]; then \
apt-get install --assume-yes gcc-x86-64-linux-gnu; \
fi && \
if [ ${TARGETPLATFORM} = "linux/arm64" ]; then \
if [ ${BUILDPLATFORM} = "linux/arm64" ] || [ ${TARGETPLATFORM} = "linux/arm64" ]; then \
apt-get install --assume-yes gcc-aarch64-linux-gnu; \
fi && \
if [ ${TARGETPLATFORM} = "linux/arm/v7" ]; then \
if [ ${BUILDPLATFORM} = "linux/arm/v7" ] || [ ${TARGETPLATFORM} = "linux/arm/v7" ]; then \
apt-get install --assume-yes gcc-arm-linux-gnueabihf; \
fi