mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #2593 from cespinal117/update_build_instructions
Some checks failed
🔎 Check Code Formatting / formatting-check (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_GIGA) (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_NANO_33_BLE_SENSE) (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_NANO_RP2040_CONNECT) (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_NICLA_VISION) (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_PORTENTA_H7) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV2) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV3) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV4) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV4P) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMVPT) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV_RT1060) (push) Has been cancelled
🔥 Firmware Build / code-size-report (push) Has been cancelled
🔥 Firmware Build / stable-release (push) Has been cancelled
🔥 Firmware Build / development-release (push) Has been cancelled
Some checks failed
🔎 Check Code Formatting / formatting-check (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_GIGA) (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_NANO_33_BLE_SENSE) (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_NANO_RP2040_CONNECT) (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_NICLA_VISION) (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_PORTENTA_H7) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV2) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV3) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV4) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV4P) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMVPT) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV_RT1060) (push) Has been cancelled
🔥 Firmware Build / code-size-report (push) Has been cancelled
🔥 Firmware Build / stable-release (push) Has been cancelled
🔥 Firmware Build / development-release (push) Has been cancelled
misc: Fix files still referencing old micropython location.
This commit is contained in:
commit
a25a43bd58
@ -6,10 +6,10 @@ cd $(dirname $0)/..
|
|||||||
|
|
||||||
export PATH=/source/gcc/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/lib/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/lib/micropython/mpy-cross
|
||||||
make -j$(nproc) TARGET=$TARGET LLVM_PATH=/source/llvm/bin -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
|
||||||
|
|||||||
@ -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
|
git clone --depth=1 https://github.com/openmv/openmv.git
|
||||||
cd openmv
|
cd openmv
|
||||||
git submodule update --init --depth=1 --no-single-branch
|
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
|
### Build the firmware
|
||||||
To build the firmware, run the following commands inside the openmv repository:
|
To build the firmware, run the following commands inside the openmv repository:
|
||||||
```bash
|
```bash
|
||||||
cd openmv
|
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=<TRAGET_NAME> -C src # Builds the OpenMV firmware
|
make -j$(nproc) TARGET=<TRAGET_NAME> -C src # Builds the OpenMV firmware
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user