mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
16 lines
386 B
Bash
Executable File
16 lines
386 B
Bash
Executable File
#!/bin/bash
|
|
set -e -x
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
|
export PATH=/source/gcc/gcc/bin:/source/cmake/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
|
|
mkdir -p ./docker/build/$TARGET
|
|
cp -r src/build/bin/* ./docker/build/$TARGET
|