Browse Source

waf: make program() use blddestdir param

That param defines where the binary will be saved in the build directory,
namely `build/<board>/<blddestdir>`. The default is 'bin', for binaries that are
to be shipped for installation.
mission-4.1.18
Gustavo Jose de Sousa 9 years ago committed by Lucas De Marchi
parent
commit
a55d803638
  1. 5
      Tools/ardupilotwaf/ardupilotwaf.py

5
Tools/ardupilotwaf/ardupilotwaf.py

@ -74,7 +74,7 @@ def get_all_libraries(bld): @@ -74,7 +74,7 @@ def get_all_libraries(bld):
libraries.extend(['AP_HAL', 'AP_HAL_Empty'])
return libraries
def program(bld, **kw):
def program(bld, blddestdir='bin', **kw):
if 'target' in kw:
bld.fatal('Do not pass target for program')
if 'defines' not in kw:
@ -87,7 +87,8 @@ def program(bld, **kw): @@ -87,7 +87,8 @@ def program(bld, **kw):
kw['features'] = common_features(bld) + kw.get('features', [])
target = bld.bldnode.make_node(name + '.' + bld.env.BOARD)
target = bld.bldnode.find_or_declare(blddestdir + '/' +
name + '.' + bld.env.BOARD)
bld.program(
target=target,
name=name,

Loading…
Cancel
Save