waf: only add support for iofirmware build if the board supports it

This commit is contained in:
Siddharth Purohit 2018-09-18 16:24:20 +05:30 committed by Andrew Tridgell
parent 22f74b0827
commit 19d9982ac1
1 changed files with 3 additions and 1 deletions

View File

@ -390,7 +390,9 @@ def _build_recursion(bld):
common_dirs_patterns,
excl=common_dirs_excl,
)
dirs_to_recurse.append('libraries/AP_IOMCU/iofirmware')
if bld.env.IOMCU_FW is not None:
if bld.env.IOMCU_FW:
dirs_to_recurse.append('libraries/AP_IOMCU/iofirmware')
for p in hal_dirs_patterns:
dirs_to_recurse += collect_dirs_to_recurse(
bld,