waf: disable use of libc realloc for chibios

This commit is contained in:
bugobliterator 2020-03-17 14:36:28 +05:30 committed by Andrew Tridgell
parent 51fa1773b4
commit 21a6a5d061
1 changed files with 2 additions and 0 deletions

View File

@ -442,6 +442,7 @@ class chibios(Board):
env.DEFINES.update(
CONFIG_HAL_BOARD = 'HAL_BOARD_CHIBIOS',
HAVE_STD_NULLPTR_T = 0,
USE_LIBC_REALLOC = 0,
)
env.AP_LIBRARIES += [
@ -494,6 +495,7 @@ class chibios(Board):
'-specs=nosys.specs',
'-DCHIBIOS_BOARD_NAME="%s"' % self.name,
'-D__USE_CMSIS',
'-Werror=deprecated-declarations'
]
env.CXXFLAGS += env.CFLAGS + [
'-fno-rtti',