mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
Tools: auto-build AP_Periph binaries
This commit is contained in:
parent
2818151a39
commit
6f6a8d5d14
@ -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)
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user