build: move Linux configuration options to its own sections

This commit is contained in:
Lucas De Marchi 2018-03-27 00:16:30 -07:00
parent b1b4b66e65
commit 4697089a82
2 changed files with 11 additions and 8 deletions

View File

@ -383,6 +383,7 @@ def _select_programs_from_group(bld):
def options(opt):
opt.ap_groups = {
'configure': opt.add_option_group('Ardupilot configure options'),
'linux': opt.add_option_group('Linux boards configure options'),
'build': opt.add_option_group('Ardupilot build options'),
'check': opt.add_option_group('Ardupilot check options'),
'clean': opt.add_option_group('Ardupilot clean options'),

18
wscript
View File

@ -82,6 +82,16 @@ Don't update git submodules. Useful for building with submodules at specific
revisions.
''')
g.add_option('--disable-header-checks', action='store_true',
default=False,
help="Disable checking of headers")
g.add_option('--default-parameters',
default=None,
help='set default parameters to embed in the firmware')
g = opt.ap_groups['linux']
g.add_option('--rsync-dest',
dest='rsync_dest',
action='store',
@ -108,19 +118,11 @@ order to save typing.
default=False,
help="Disable compilation and test execution")
g.add_option('--disable-header-checks', action='store_true',
default=False,
help="Disable checking of headers")
g.add_option('--static',
action='store_true',
default=False,
help='Force a static build')
g.add_option('--default-parameters',
default=None,
help='set default parameters to embed in the firmware')
def _collect_autoconfig_files(cfg):
for m in sys.modules.values():
paths = []