waf: support AP_Periph build

This commit is contained in:
Andrew Tridgell 2019-05-27 11:46:24 +10:00
parent 9a7b52fd15
commit 93e27cfcab

View File

@ -469,6 +469,11 @@ def _build_recursion(bld):
if bld.env.IOMCU_FW is not None: if bld.env.IOMCU_FW is not None:
if bld.env.IOMCU_FW: if bld.env.IOMCU_FW:
dirs_to_recurse.append('libraries/AP_IOMCU/iofirmware') 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: for p in hal_dirs_patterns:
dirs_to_recurse += collect_dirs_to_recurse( dirs_to_recurse += collect_dirs_to_recurse(
bld, bld,
@ -547,7 +552,7 @@ ardupilotwaf.build_command('check-all',
doc='shortcut for `waf check --alltests`', 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, ardupilotwaf.build_command(name,
program_group_list=name, program_group_list=name,
doc='builds %s programs' % name, doc='builds %s programs' % name,