Update build instructions and .gitignore

This commit is contained in:
Niccolò Izzo 2020-10-14 14:12:50 +02:00
parent e9696920a6
commit fabc874d63
2 changed files with 25 additions and 6 deletions

5
.gitignore vendored
View File

@ -1,5 +1,6 @@
# Meson build dir # Meson build dirs
builddir build_linux
build_md380
# Prerequisites # Prerequisites
*.d *.d

View File

@ -23,16 +23,25 @@ The following steps depend on the selected platform:
The OpenRTX linux build depends on libSDL, on Ubuntu you can install it with: The OpenRTX linux build depends on libSDL, on Ubuntu you can install it with:
``` ```
sudo apt install libsdl2-dev sudo apt install gcc pkg-config libsdl2-dev
``` ```
The firmware can be compiled with: The firmware can be compiled with:
``` ```
meson builddir meson setup build_linux
meson compile -C builddir openrtx-linux meson compile -C build_linux openrtx-linux
``` ```
If you are using a version of Meson older than v0.55.0, the above command will fail, compile with:
```
meson setup build_linux
ninja -C build_linux openrtx-linux -jN
```
Where N is the number of cores that you want to allocate to the build process.
### TYT MD-380 / TYT MD-UV380 ### TYT MD-380 / TYT MD-UV380
To build the firmware you need to have a toolchain for the ARM ISA installed To build the firmware you need to have a toolchain for the ARM ISA installed
@ -46,10 +55,19 @@ sudo apt install gcc-arm-none-eabi
You can then proceed in building the firmware: You can then proceed in building the firmware:
``` ```
meson builddir --cross-file cross_arm.txt meson setup --cross-file cross_arm.txt build_md380
meson compile -C builddir openrtx-md380 meson compile -C builddir openrtx-md380
``` ```
If you are using a version of Meson older than v0.55.0, the above command will fail, compile with:
```
meson setup --cross-file cross_arm.txt build_md380
ninja -C build_md380 openrtx-md380 -jN
```
Where N is the number of cores that you want to allocate to the build process.
If everything compiled without errors you can connect your radio via USB, If everything compiled without errors you can connect your radio via USB,
put it in recovery mode (by powering it on with the PTT and the button put it in recovery mode (by powering it on with the PTT and the button
above it pressed), and flash the firmware: above it pressed), and flash the firmware: