diff --git a/docker/build.sh b/docker/build.sh index 0a4421857..b11508d23 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -6,10 +6,10 @@ cd $(dirname $0)/.. export PATH=/source/gcc/bin:/source/cmake/bin:$PATH git submodule update --init --depth=1 -git -C src/micropython/ submodule update --init --depth=1 +git -C src/lib/micropython/ submodule update --init --depth=1 # Build the firmware. -make -j$(nproc) -C src/micropython/mpy-cross +make -j$(nproc) -C src/lib/micropython/mpy-cross 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 diff --git a/src/README.md b/src/README.md index c395dc29e..e47b316a6 100644 --- a/src/README.md +++ b/src/README.md @@ -61,14 +61,14 @@ The above command will clone this repository along with all of its submodules re git clone --depth=1 https://github.com/openmv/openmv.git cd openmv git submodule update --init --depth=1 --no-single-branch -git -C src/micropython/ submodule update --init --depth=1 +git -C src/lib/micropython/ submodule update --init --depth=1 ``` ### Build the firmware To build the firmware, run the following commands inside the openmv repository: ```bash cd openmv -make -j$(nproc) -C src/micropython/mpy-cross # Builds Micropython mpy cross-compiler +make -j$(nproc) -C src/lib/micropython/mpy-cross # Builds Micropython mpy cross-compiler make -j$(nproc) TARGET= -C src # Builds the OpenMV firmware ```