waf: don't build libuavcan library for AP_Periph builds

This commit is contained in:
bugobliterator 2021-09-30 13:32:47 +05:30 committed by Andrew Tridgell
parent f178174df1
commit 2223698c47

View File

@ -342,7 +342,7 @@ class Board:
'-Wl,--gc-sections', '-Wl,--gc-sections',
] ]
if self.with_can: if self.with_can and not cfg.env.AP_PERIPH:
env.AP_LIBRARIES += [ env.AP_LIBRARIES += [
'AP_UAVCAN', 'AP_UAVCAN',
'modules/uavcan/libuavcan/src/**/*.cpp' 'modules/uavcan/libuavcan/src/**/*.cpp'