From 1297b7ea878d620ee3f90ff05fef8f72de46e6c1 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 20 Apr 2024 21:21:37 +0200 Subject: [PATCH] Set up build containers for frt. --- misc/build-containers/Dockerfile.frt_arm32v7 | 9 +++++++++ misc/build-containers/Dockerfile.frt_arm64v8 | 9 +++++++++ misc/build-containers/Dockerfile.frt_base | 13 +++++++++++++ misc/build-containers/build_containers.sh | 4 ++++ 4 files changed, 35 insertions(+) create mode 100644 misc/build-containers/Dockerfile.frt_arm32v7 create mode 100644 misc/build-containers/Dockerfile.frt_arm64v8 create mode 100644 misc/build-containers/Dockerfile.frt_base diff --git a/misc/build-containers/Dockerfile.frt_arm32v7 b/misc/build-containers/Dockerfile.frt_arm32v7 new file mode 100644 index 000000000..93ae4f47f --- /dev/null +++ b/misc/build-containers/Dockerfile.frt_arm32v7 @@ -0,0 +1,9 @@ +ARG img_version +FROM pandemonium-frt-base:${img_version} + +RUN dpkg --add-architecture armhf && apt-get update && apt-get install -y -q \ + crossbuild-essential-armhf + +RUN apt-get install -y -q \ + libstdc++-11-dev:armhf libsdl2-dev:armhf libgbm-dev:armhf libsamplerate0-dev:armhf + diff --git a/misc/build-containers/Dockerfile.frt_arm64v8 b/misc/build-containers/Dockerfile.frt_arm64v8 new file mode 100644 index 000000000..b304db079 --- /dev/null +++ b/misc/build-containers/Dockerfile.frt_arm64v8 @@ -0,0 +1,9 @@ +ARG img_version +FROM pandemonium-frt-base:${img_version} + +RUN dpkg --add-architecture arm64 && apt-get update && apt-get install -y -q \ + crossbuild-essential-arm64 + +RUN apt-get install -y -q \ + libstdc++-11-dev:arm64 libsdl2-dev:arm64 libgbm-dev:arm64 libsamplerate0-dev:arm64 + diff --git a/misc/build-containers/Dockerfile.frt_base b/misc/build-containers/Dockerfile.frt_base new file mode 100644 index 000000000..a22f67c29 --- /dev/null +++ b/misc/build-containers/Dockerfile.frt_base @@ -0,0 +1,13 @@ + +FROM debian:bookworm + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update && apt-get upgrade -y && \ +apt-get install --no-install-recommends -y -q \ + git-core vim-nox wget less nvi tmux lynx + +RUN apt-get install -y -q \ + build-essential clang llvm lld python3-pip cmake ninja-build scons meson + + diff --git a/misc/build-containers/build_containers.sh b/misc/build-containers/build_containers.sh index 4eb5cb686..1cf2cb703 100755 --- a/misc/build-containers/build_containers.sh +++ b/misc/build-containers/build_containers.sh @@ -32,3 +32,7 @@ fi $docker_build -t pandemonium-osx:${img_version} -f Dockerfile.osx . 2>&1 | tee logs/osx.log $docker_build -t pandemonium-ios:${img_version} -f Dockerfile.ios . 2>&1 | tee logs/ios.log +docker build -t pandemonium-frt-base:${img_version} -f Dockerfile.frt_base . 2>&1 | tee logs/frt_base.log +$docker_build -t pandemonium-frt-arm32v7:${img_version} -f Dockerfile.frt_arm32v7 . 2>&1 | tee logs/frt_arm32v7.log +$docker_build -t pandemonium-frt-arm64v8:${img_version} -f Dockerfile.frt_arm64v8 . 2>&1 | tee logs/frt_arm64v8.log +