diff --git a/dev/source/docs/building-setup-linux.rst b/dev/source/docs/building-setup-linux.rst index 31d7650e9e..7ca40b3725 100644 --- a/dev/source/docs/building-setup-linux.rst +++ b/dev/source/docs/building-setup-linux.rst @@ -50,7 +50,27 @@ Reload the path (log-out and log-in to make it permanent): . ~/.profile -Now you should be able to build with waf as described in `BUILD.md `__. +Build the code for an autopilot or peripheral board +--------------------------------------------------- + +Now you should be able to build with waf as described in `BUILD.md `__. For example, for a Copter build for the MatekH743 board: + +:: + + ./waf configure --board MatekH743 + ./waf copter + + The first configure command should be called only once or when you want to change a + configuration option. One configuration often used is the `--board` option to + switch from one board to another one. For example we could switch to + SkyViper GPS drone and build again: + +:: + + ./waf configure --board skyviper-v2450 + ./waf copter + +.. note:: the - -help option will list many build options as well as a list of features that can be enabled or disabled, just as in the `Custom Firmware Build Server `__ .. note:: At this point you have already installed the MAVProxy Ground Control Station (MAVProxy GCS) and are also ready to do Software In the Loop (SITL) simulations of the vehicle code. See :ref:`sitl-simulator-software-in-the-loop` and :ref:`setting-up-sitl-on-linux`. You are ready to not only build the code but run your build in the ArduPilot SITL simulator.