build: clarify --upload once again for Linux boards

This commit is contained in:
Lucas De Marchi 2017-07-25 14:32:46 -07:00
parent 2aaaba8397
commit 7c2c780333
1 changed files with 7 additions and 4 deletions

View File

@ -75,15 +75,14 @@ list some basic and more used commands as example.
./waf --targets bin/arducopter --upload ./waf --targets bin/arducopter --upload
``` ```
On Linux you need to first configure the IP of the board you are going to upload For Linux boards you need first to configure the IP of the board you
to. This is done on configure phase with: are going to upload to. This is done on configure phase with:
```sh ```sh
./waf configure --board <board> --rsync-dest <destination> ./waf configure --board <board> --rsync-dest <destination>
``` ```
What this does is to install to a temporary location and calling The commands below give a concrete example (board and destination
`rsync <temp_install_location>/ <destination>`. Example (board and destination
IP will change according to the board used): IP will change according to the board used):
```sh ```sh
@ -91,6 +90,10 @@ list some basic and more used commands as example.
./waf --target bin/arducopter --upload ./waf --target bin/arducopter --upload
``` ```
This allows to set a destination to which the `--upload` option will upload
the binary. Under the hood it installs to a temporary location and calls
`rsync <temp_install_location>/ <destination>`.
On Linux boards there's also an install command, which will install to a certain On Linux boards there's also an install command, which will install to a certain
directory, just like the temporary install above does. This can be directory, just like the temporary install above does. This can be
used by distributors to create .deb, .rpm or other package types: used by distributors to create .deb, .rpm or other package types: