diff --git a/Tools/AP_Bootloader/wscript b/Tools/AP_Bootloader/wscript index 5324cfba67..d9219b8c1d 100644 --- a/Tools/AP_Bootloader/wscript +++ b/Tools/AP_Bootloader/wscript @@ -2,7 +2,8 @@ # encoding: utf-8 def build(bld): - bld.ap_program( - use='ap', - program_groups='bootloader' - ) + if bld.env.BOOTLOADER: + bld.ap_program( + use='ap', + program_groups='bootloader' + )