mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 00:13:59 -04:00
waf: added board name to ChibiOS build
This commit is contained in:
parent
4b8bde746e
commit
13a3c56a02
@ -273,6 +273,9 @@ class chibios(Board):
|
||||
'AP_HAL_ChibiOS',
|
||||
]
|
||||
|
||||
# make board name available for USB IDs
|
||||
env.CHIBIOS_BOARD_NAME = 'HAL_BOARD_NAME="%s"' % self.name
|
||||
|
||||
env.CXXFLAGS += [
|
||||
'-Wlogical-op',
|
||||
'-Wframe-larger-than=1300',
|
||||
|
@ -156,7 +156,7 @@ def build(bld):
|
||||
|
||||
bld(
|
||||
# create the file modules/ChibiOS/include_dirs
|
||||
rule='touch Makefile && BUILDDIR=${BUILDDIR} CHIBIOS=${CH_ROOT} AP_HAL=${AP_HAL_ROOT} ${CHIBIOS_FATFS_FLAG} ${MAKE} pass -f ${BOARD_MK}',
|
||||
rule='touch Makefile && BUILDDIR=${BUILDDIR} CHIBIOS=${CH_ROOT} AP_HAL=${AP_HAL_ROOT} ${CHIBIOS_FATFS_FLAG} ${CHIBIOS_BOARD_NAME} ${MAKE} pass -f ${BOARD_MK}',
|
||||
group='dynamic_sources',
|
||||
target='modules/ChibiOS/include_dirs'
|
||||
)
|
||||
@ -169,7 +169,7 @@ def build(bld):
|
||||
common_src += bld.path.ant_glob('modules/ChibiOS/os/hal/**/*.mk')
|
||||
ch_task = bld(
|
||||
# build libch.a from ChibiOS sources and hwdef.h
|
||||
rule="BUILDDIR='${BUILDDIR}' CHIBIOS='${CH_ROOT}' AP_HAL=${AP_HAL_ROOT} ${CHIBIOS_FATFS_FLAG} '${MAKE}' lib -f ${BOARD_MK}",
|
||||
rule="BUILDDIR='${BUILDDIR}' CHIBIOS='${CH_ROOT}' AP_HAL=${AP_HAL_ROOT} ${CHIBIOS_FATFS_FLAG} ${CHIBIOS_BOARD_NAME} '${MAKE}' lib -f ${BOARD_MK}",
|
||||
group='dynamic_sources',
|
||||
source=common_src,
|
||||
target='modules/ChibiOS/libch.a'
|
||||
|
Loading…
Reference in New Issue
Block a user