waf: support AP_Periph build

This commit is contained in:
Andrew Tridgell 2019-05-27 11:46:24 +10:00
parent 9a7b52fd15
commit 93e27cfcab
1 changed files with 6 additions and 1 deletions

View File

@ -469,6 +469,11 @@ def _build_recursion(bld):
if bld.env.IOMCU_FW is not None:
if bld.env.IOMCU_FW:
dirs_to_recurse.append('libraries/AP_IOMCU/iofirmware')
if bld.env.PERIPH_FW is not None:
if bld.env.PERIPH_FW:
dirs_to_recurse.append('Tools/AP_Periph')
for p in hal_dirs_patterns:
dirs_to_recurse += collect_dirs_to_recurse(
bld,
@ -547,7 +552,7 @@ ardupilotwaf.build_command('check-all',
doc='shortcut for `waf check --alltests`',
)
for name in ('antennatracker', 'copter', 'heli', 'plane', 'rover', 'sub', 'bootloader','iofirmware'):
for name in ('antennatracker', 'copter', 'heli', 'plane', 'rover', 'sub', 'bootloader','iofirmware','AP_Periph'):
ardupilotwaf.build_command(name,
program_group_list=name,
doc='builds %s programs' % name,