Update description of the build process
parent
c58a5298d6
commit
d189d9c4cf
33
README.md
33
README.md
|
|
@ -1,27 +1,40 @@
|
||||||
# Prusa-Firmware-MMU-Private
|
# Prusa-Firmware-MMU-Private
|
||||||
|
|
||||||
## How to prepare build env and tools
|
## How to prepare build env and tools
|
||||||
Use tools from the Buddy FW and a separate Atmel AVR GCC 5.4.
|
As the first step extract the AVR-GCC to some dir, e.g. `/home/user/AVRToolchainMMU/avr8-gnu-toolchain-5.4.0`
|
||||||
|
|
||||||
Extract the AVR-GCC to some dir, e.g. `/home/user/AVRToolchainMMU/avr8-gnu-toolchain-5.4.0`
|
Add `/home/user/AVRToolchainMMU/avr8-gnu-toolchain-5.4.0/bin` to your `PATH`.
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir .dependencies
|
mkdir .dependencies
|
||||||
cd .dependencies
|
cd .dependencies
|
||||||
ln -s ../../STM32Toolchain/clang-format-9.0.0-noext
|
mkdir gcc-avr-5.4.0
|
||||||
ln -s ../../STM32Toolchain/cmake-3.15.5
|
cd ..
|
||||||
ln -s ../../STM32Toolchain/ninja-1.9.0
|
utils/bootstrap.py
|
||||||
ln -s ../../AVRToolchainMMU/avr8-gnu-toolchain-5.4.0
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## How to build the preliminary project so far:
|
`bootstrap.py` will now download all the "missing" dependencies into the `.dependencies` folder:
|
||||||
Please make sure you have your `cmake`, `clang-format` and `ninja` in path
|
- clang-format-9.0.0-noext
|
||||||
|
- cmake-3.15.5
|
||||||
|
- ninja-1.9.0
|
||||||
|
|
||||||
|
Note: bootstrap.py will not try to download the AVR-GCC as there is already a directory called
|
||||||
|
`gcc-avr-5.4.0`. This will be fixed when we find out where to download the correct packages reliably.
|
||||||
|
|
||||||
|
## How to build the preliminary project so far:
|
||||||
|
Now the process is the same as in the Buddy Firmware:
|
||||||
|
```
|
||||||
|
utils/build.py
|
||||||
|
```
|
||||||
|
|
||||||
|
builds the firmware.hex in build/mmu_release
|
||||||
|
|
||||||
|
In case you'd like to build the project directly via cmake you can use an approach like this:
|
||||||
```
|
```
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE=../../cmake/AnyAvrGcc.cmake
|
cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE=../cmake/AnyAvrGcc.cmake
|
||||||
ninja
|
ninja
|
||||||
```
|
```
|
||||||
|
|
||||||
Should produce a firmware.hex file
|
Should produce a firmware.hex file as well.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue