From a8c370a0cb6e2009c0d4884962b3415f2056d63b Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Tue, 14 Jun 2016 14:08:37 -0300 Subject: [PATCH] waf: readme: add section regarding firmware upload --- README-WAF.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README-WAF.md b/README-WAF.md index aea82eb84d..10ad4f7e5f 100644 --- a/README-WAF.md +++ b/README-WAF.md @@ -149,6 +149,20 @@ waf --targets bin/arducopter-quad waf --targets tests/test_vectors ``` +## Uploading ## + +There's a build option `--upload` that can be used to tell the build that it +must upload the program(s) addressed by `--targets` arguments. The +implementation is board-specific and not all boards may have that implemented. +Example: + +```bash +# PX4 supports uploading the program through a USB connection +waf configure --board px4-v2 +# Build arducopter-quad and upload it to my board +waf --targets bin/arducopter-quad --upload +``` + ## Checking ## The command `check` builds all programs and then run the relevant tests. In