Browse Source

Tools: auto-build AP_Periph binaries

master
Andrew Tridgell 5 years ago
parent
commit
6f6a8d5d14
  1. 21
      Tools/scripts/build_binaries.py
  2. 5
      Tools/scripts/generate_manifest.py

21
Tools/scripts/build_binaries.py

@ -571,6 +571,15 @@ is bob we will attempt to checkout bob-AVR''' @@ -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''' @@ -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''' @@ -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)

5
Tools/scripts/generate_manifest.py

@ -10,7 +10,7 @@ import fnmatch @@ -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(): @@ -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…
Cancel
Save