waf: added flag for no FATFS in ChibiOS
This commit is contained in:
parent
2929b3dbb1
commit
c708201fc6
@ -351,6 +351,7 @@ class chibios(Board):
|
||||
'ChibiOS',
|
||||
]
|
||||
cfg.load('chibios')
|
||||
env.CHIBIOS_FATFS_FLAG = 'USE_FATFS=yes'
|
||||
|
||||
def build(self, bld):
|
||||
super(chibios, self).build(bld)
|
||||
@ -363,6 +364,7 @@ class skyviper_f412(chibios):
|
||||
env.DEFINES.update(
|
||||
CONFIG_HAL_BOARD_SUBTYPE = 'HAL_BOARD_SUBTYPE_CHIBIOS_SKYVIPER_F412',
|
||||
)
|
||||
env.CHIBIOS_FATFS_FLAG = 'USE_FATFS=no'
|
||||
|
||||
class fmuv3(chibios):
|
||||
name = 'fmuv3'
|
||||
|
@ -156,14 +156,14 @@ def build(bld):
|
||||
|
||||
bld(
|
||||
# create the file modules/ChibiOS/include_dirs
|
||||
rule='touch Makefile && BUILDDIR=${BUILDDIR} CHIBIOS=${CH_ROOT} AP_HAL=${AP_HAL_ROOT} ${MAKE} pass -f ${BOARD_MK}',
|
||||
rule='touch Makefile && BUILDDIR=${BUILDDIR} CHIBIOS=${CH_ROOT} AP_HAL=${AP_HAL_ROOT} ${CHIBIOS_FATFS_FLAG} ${MAKE} pass -f ${BOARD_MK}',
|
||||
group='dynamic_sources',
|
||||
target='modules/ChibiOS/include_dirs'
|
||||
)
|
||||
|
||||
bld(
|
||||
# build libch.a from ChibiOS sources and hwdef.h
|
||||
rule="BUILDDIR='${BUILDDIR}' CHIBIOS='${CH_ROOT}' AP_HAL=${AP_HAL_ROOT} '${MAKE}' lib -f ${BOARD_MK}",
|
||||
rule="BUILDDIR='${BUILDDIR}' CHIBIOS='${CH_ROOT}' AP_HAL=${AP_HAL_ROOT} ${CHIBIOS_FATFS_FLAG} '${MAKE}' lib -f ${BOARD_MK}",
|
||||
group='dynamic_sources',
|
||||
source=bld.bldnode.find_or_declare('hwdef.h'),
|
||||
target=['modules/ChibiOS/libch.a']
|
||||
|
Loading…
Reference in New Issue
Block a user