waf: ardupilotwaf: use name without board extention

If the attribute name is passed, then it is the one used to process the option
--target[s] of waf build. The board name should be used only in configuration
time. The build targets should be board/platform agnostic.

Now, instead of using `waf --target ArduCopter.sitl`, we use `waf --target
ArduCopter` and the binary continues named as "ArduCopter.sitl".
This commit is contained in:
Gustavo Jose de Sousa 2015-12-07 14:55:32 -02:00 committed by Randy Mackay
parent dc81a2410e
commit c4c9ce6a2a
2 changed files with 3 additions and 2 deletions

View File

@ -25,8 +25,8 @@ calling just 'waf' is enough
It's possible to build for just a vehicle or an example by specifying it as the
target:
# From the top directory, note the board name used in the target
waf --target ArduCopter.linux
# From the top directory
waf --target ArduCopter
# List all the targets available
waf list

View File

@ -90,6 +90,7 @@ def program(bld, **kw):
target = bld.bldnode.make_node(name + '.' + bld.env.BOARD)
bld.program(
target=target,
name=name,
**kw
)