From e549d0a3ebc32762f5b55507fda0cc58a7919375 Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Mon, 11 Jan 2016 19:47:40 -0200 Subject: [PATCH] waf: use blddestdir to define task generator name The only exception is for binaries that go in 'bin', like vehicles. That way, partial builds follow the rule: - If building a vehicle or some helper that goes into 'bin', just use the binary name as the argument for --target. Example: `waf --target ArduCopter`. - For other binaries, the name of the directory they are placed in must be used. Example: `waf --target tests/test_vectors`. --- Tools/ardupilotwaf/ardupilotwaf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tools/ardupilotwaf/ardupilotwaf.py b/Tools/ardupilotwaf/ardupilotwaf.py index 5a638bbcd6..fdde93439e 100644 --- a/Tools/ardupilotwaf/ardupilotwaf.py +++ b/Tools/ardupilotwaf/ardupilotwaf.py @@ -89,6 +89,9 @@ def program(bld, blddestdir='bin', **kw): target = bld.bldnode.find_or_declare(blddestdir + '/' + name + '.' + bld.env.BOARD) + if blddestdir != 'bin': + name = blddestdir + '/' + name + bld.program( target=target, name=name,