AP_Bootloader: only build bootloader when --bootloader configured

This commit is contained in:
Andrew Tridgell 2018-06-17 07:57:09 +10:00
parent 608490f5ae
commit f0e0b1baaa
1 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,8 @@
# encoding: utf-8 # encoding: utf-8
def build(bld): def build(bld):
bld.ap_program( if bld.env.BOOTLOADER:
use='ap', bld.ap_program(
program_groups='bootloader' use='ap',
) program_groups='bootloader'
)