From 8dff6dd27b5e471f04b6c492fb676ca08a4e5be4 Mon Sep 17 00:00:00 2001 From: Siddharth Purohit Date: Wed, 2 Jun 2021 19:07:18 +0530 Subject: [PATCH] AP_Bootloader: build FlashIface for bl with external flash support --- Tools/AP_Bootloader/wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Tools/AP_Bootloader/wscript b/Tools/AP_Bootloader/wscript index e89fa2208e..cc95e1cafa 100644 --- a/Tools/AP_Bootloader/wscript +++ b/Tools/AP_Bootloader/wscript @@ -5,6 +5,11 @@ def build(bld): if not bld.env.BOOTLOADER: return + if bld.env.EXTERNAL_FLASH_SUPPORT: + flashiface_lib = ['AP_HAL', 'AP_FlashIface'] + else: + flashiface_lib = [] + # build external libcanard library bld.stlib(source='../../modules/libcanard/canard.c', target='libcanard') @@ -19,7 +24,7 @@ def build(bld): bld.ap_stlib( name= 'AP_Bootloader_libs', ap_vehicle='AP_Bootloader', - ap_libraries= [ + ap_libraries= flashiface_lib + [ 'AP_Math' ])