Merge pull request #2399 from openmv/docker_update

docker: Update docker build.
This commit is contained in:
Ibrahim Abdelkader 2024-08-30 16:37:39 +03:00 committed by GitHub
commit d4a456edff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM ubuntu:20.04 AS dapper
FROM ubuntu:22.04 AS dapper
ARG DAPPER_HOST_ARCH
ENV DAPPER_ENV TARGET
ENV ARCH $DAPPER_HOST_ARCH

View File

@ -4,12 +4,12 @@ set -e -x
cd $(dirname $0)/..
export PATH=/source/gcc/bin:/source/llvm/bin:/source/cmake/bin:$PATH
export PATH=/source/gcc/bin:/source/cmake/bin:$PATH
git submodule update --init --depth=1
git -C src/micropython/ submodule update --init --depth=1
# Build the firmware.
make -j$(nproc) -C src/micropython/mpy-cross
make -j$(nproc) TARGET=$TARGET -C src
make -j$(nproc) TARGET=$TARGET LLVM_PATH=/source/llvm/bin -C src
mkdir -p ./docker/build/$TARGET
cp -r src/build/bin/* ./docker/build/$TARGET