docker: Update docker build.

This commit is contained in:
iabdalkader 2024-08-30 15:25:22 +02:00
parent bd098d2123
commit 0f86a90602
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 ARG DAPPER_HOST_ARCH
ENV DAPPER_ENV TARGET ENV DAPPER_ENV TARGET
ENV ARCH $DAPPER_HOST_ARCH ENV ARCH $DAPPER_HOST_ARCH

View File

@ -4,12 +4,12 @@ set -e -x
cd $(dirname $0)/.. 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 submodule update --init --depth=1
git -C src/micropython/ submodule update --init --depth=1 git -C src/micropython/ submodule update --init --depth=1
# Build the firmware. # Build the firmware.
make -j$(nproc) -C src/micropython/mpy-cross 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 mkdir -p ./docker/build/$TARGET
cp -r src/build/bin/* ./docker/build/$TARGET cp -r src/build/bin/* ./docker/build/$TARGET