Skip to content

Build Instructions using docker and Windows 10

Dominic Clifton edited this page Aug 9, 2021 · 16 revisions

Work-in-progress page

Source directory.

Use a directory with no spaces in the name for the directory containing the source, i.e. not "My Documents" - Note: It's possible to create a symlink/junction point so that 'Documents' points to 'My Documents'.

cd /cygdrive/d/Documents/dev/embedded/edgetx/

On host

In Cygwin Terminal: docker run -it --rm --mount src="$(cygpath -w $(pwd))",target="/src",type=bind ghcr.io/edgetx/edgetx-dev:2.4 bash

Command Prompt: docker run -it --rm --mount src="$(pwd)",target="/src",type=bind ghcr.io/edgetx/edgetx-dev:2.4 bash

In container

2.4 only: export PATH="~/edgetx/edgetx-v2.4/radio/util:$PATH"

x9d+:

mkdir build-x9d cd build-x9d/ cmake -LH ../ > cmake-options.txt cmake -DPCB=X9D+ CMAKE_BUILD_TYPE:STRING=Release ../ make -jnproc firmware

x7:

mkdir build-x7 cd build-x7 cmake -LH ../ > cmake-options.txt cmake -DPCB=X7 CMAKE_BUILD_TYPE:STRING=Release ../ make -j16 firmware

Clone this wiki locally