mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
docker: Update docker build.
This commit is contained in:
parent
bd098d2123
commit
0f86a90602
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user