Skip to content

Commit

Permalink
AP_Bootloader: build FlashIface for bl with external flash support
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator authored and tridge committed Sep 1, 2021
1 parent a039711 commit 8dff6dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Tools/AP_Bootloader/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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'
])

Expand Down

0 comments on commit 8dff6dd

Please sign in to comment.