Tools: auto-build AP_Periph binaries

This commit is contained in:
Andrew Tridgell 2019-10-24 22:35:47 +11:00
parent 2818151a39
commit 6f6a8d5d14
2 changed files with 24 additions and 2 deletions

View File

@ -571,6 +571,15 @@ is bob we will attempt to checkout bob-AVR'''
"SITL_arm_linux_gnueabihf",
]
def AP_Periph_boards(self):
'''returns list of boards for AP_Periph'''
return ["f103-GPS",
"f103-ADSB",
"f103-RangeFinder",
"CUAV_GPS",
"ZubaxGNSS",
]
def build_arducopter(self, tag):
'''build Copter binaries'''
boards = []
@ -624,6 +633,17 @@ is bob we will attempt to checkout bob-AVR'''
"ardusub",
"ArduSub")
def build_AP_Periph(self, tag):
'''build AP_Periph binaries'''
boards = self.AP_Periph_boards()
self.build_vehicle(tag,
"AP_Periph",
boards,
"AP_Periph",
"AP_Periph",
"AP_Periph")
def generate_manifest(self):
'''generate manigest files for GCS to download'''
self.progress("Generating manifest")
@ -731,6 +751,7 @@ is bob we will attempt to checkout bob-AVR'''
self.build_rover(tag)
self.build_antennatracker(tag)
self.build_ardusub(tag)
self.build_AP_Periph(tag)
if os.path.exists(self.tmpdir):
shutil.rmtree(self.tmpdir)

View File

@ -10,7 +10,7 @@ import fnmatch
import gen_stable
import subprocess
FIRMWARE_TYPES = ["AntennaTracker", "Copter", "Plane", "Rover", "Sub"]
FIRMWARE_TYPES = ["AntennaTracker", "Copter", "Plane", "Rover", "Sub", "AP_Periph"]
RELEASE_TYPES = ["beta", "latest", "stable", "stable-*", "dirty"]
# mapping for board names to brand name and manufacturer
@ -94,7 +94,8 @@ class ManifestGenerator():
"Plane": "FIXED_WING",
"AntennaTracker": "ANTENNA_TRACKER",
"Rover": "GROUND_ROVER",
"Sub": "SUBMARINE"
"Sub": "SUBMARINE",
"AP_Periph": "CAN_PERIPHERAL",
}
if frame in frame_to_mavlink_dict:
return frame_to_mavlink_dict[frame]