mirror of https://github.com/ArduPilot/ardupilot
waf: remove NuttX-based IO firmware blob
This commit is contained in:
parent
c502ac4ce9
commit
0952ca0abc
|
@ -283,14 +283,6 @@ class Board:
|
||||||
def embed_ROMFS_files(self, ctx):
|
def embed_ROMFS_files(self, ctx):
|
||||||
'''embed some files using AP_ROMFS'''
|
'''embed some files using AP_ROMFS'''
|
||||||
import embed
|
import embed
|
||||||
if ctx.env.USE_NUTTX_IOFW:
|
|
||||||
# use fmuv2_IO_NuttX.bin instead of fmuv2_IO.bin
|
|
||||||
for i in range(len(ctx.env.ROMFS_FILES)):
|
|
||||||
(name,filename) = ctx.env.ROMFS_FILES[i]
|
|
||||||
if name == 'io_firmware.bin':
|
|
||||||
filename = 'Tools/IO_Firmware/fmuv2_IO_NuttX.bin'
|
|
||||||
print("Using IO firmware %s" % filename)
|
|
||||||
ctx.env.ROMFS_FILES[i] = (name,filename);
|
|
||||||
header = ctx.bldnode.make_node('ap_romfs_embedded.h').abspath()
|
header = ctx.bldnode.make_node('ap_romfs_embedded.h').abspath()
|
||||||
if not embed.create_embedded_h(header, ctx.env.ROMFS_FILES):
|
if not embed.create_embedded_h(header, ctx.env.ROMFS_FILES):
|
||||||
ctx.fatal("Failed to created ap_romfs_embedded.h")
|
ctx.fatal("Failed to created ap_romfs_embedded.h")
|
||||||
|
|
6
wscript
6
wscript
|
@ -91,11 +91,6 @@ def options(opt):
|
||||||
default=False,
|
default=False,
|
||||||
help='enable OS level asserts.')
|
help='enable OS level asserts.')
|
||||||
|
|
||||||
g.add_option('--use-nuttx-iofw',
|
|
||||||
action='store_true',
|
|
||||||
default=False,
|
|
||||||
help='use old NuttX IO firmware for IOMCU')
|
|
||||||
|
|
||||||
g.add_option('--bootloader',
|
g.add_option('--bootloader',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
|
@ -362,7 +357,6 @@ def configure(cfg):
|
||||||
cfg.env.DEBUG = cfg.options.debug
|
cfg.env.DEBUG = cfg.options.debug
|
||||||
cfg.env.ENABLE_ASSERTS = cfg.options.enable_asserts
|
cfg.env.ENABLE_ASSERTS = cfg.options.enable_asserts
|
||||||
cfg.env.BOOTLOADER = cfg.options.bootloader
|
cfg.env.BOOTLOADER = cfg.options.bootloader
|
||||||
cfg.env.USE_NUTTX_IOFW = cfg.options.use_nuttx_iofw
|
|
||||||
|
|
||||||
cfg.env.OPTIONS = cfg.options.__dict__
|
cfg.env.OPTIONS = cfg.options.__dict__
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue