waf: fixed error with no ROMFS files
This commit is contained in:
parent
3bfa4c8678
commit
1dece80c88
@ -312,12 +312,13 @@ def build(bld):
|
||||
)
|
||||
|
||||
common_src = [bld.bldnode.find_or_declare('hwdef.h'),
|
||||
bld.bldnode.find_or_declare('modules/ChibiOS/include_dirs'),
|
||||
bld.bldnode.find_or_declare('ap_romfs_embedded.h')]
|
||||
bld.bldnode.find_or_declare('modules/ChibiOS/include_dirs')]
|
||||
common_src += bld.path.ant_glob('libraries/AP_HAL_ChibiOS/hwdef/common/*.[ch]')
|
||||
common_src += bld.path.ant_glob('libraries/AP_HAL_ChibiOS/hwdef/common/*.mk')
|
||||
common_src += bld.path.ant_glob('modules/ChibiOS/os/hal/**/*.[ch]')
|
||||
common_src += bld.path.ant_glob('modules/ChibiOS/os/hal/**/*.mk')
|
||||
if bld.env.ROMFS_FILES:
|
||||
common_src += [bld.bldnode.find_or_declare('ap_romfs_embedded.h')]
|
||||
ch_task = bld(
|
||||
# build libch.a from ChibiOS sources and hwdef.h
|
||||
rule="BUILDDIR='${BUILDDIR_REL}' CHIBIOS='${CH_ROOT_REL}' AP_HAL=${AP_HAL_REL} ${CHIBIOS_BUILD_FLAGS} ${CHIBIOS_BOARD_NAME} '${MAKE}' lib -f '${BOARD_MK}'",
|
||||
|
Loading…
Reference in New Issue
Block a user