waf: ardupilotwaf: don't use Node object for ap_program target

That will make platform specific naming be ignored. We use a string instead, to
let Waf tweak the target name correctly for us. The '#' prefix is to tell Waf
that the path is relative to bld.bldnode (instead of bld.path, which is the
default).
This commit is contained in:
Gustavo Jose de Sousa 2016-02-26 19:29:34 +00:00 committed by Lucas De Marchi
parent dc66f68295
commit 8734432196

View File

@ -104,10 +104,9 @@ def ap_program(bld, program_group='bin',
kw['features'] = common_features(bld) + kw.get('features', [])
name = os.path.join(program_group, program_name)
target = bld.bldnode.find_or_declare(name)
tg = bld.program(
target=target,
target='#%s' % name,
name=name,
**kw
)