From 6f6a8d5d14f9777a5235706f177d77721a156be6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 24 Oct 2019 22:35:47 +1100 Subject: [PATCH] Tools: auto-build AP_Periph binaries --- Tools/scripts/build_binaries.py | 21 +++++++++++++++++++++ Tools/scripts/generate_manifest.py | 5 +++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/Tools/scripts/build_binaries.py b/Tools/scripts/build_binaries.py index 2fc5a8417a..4b9f3e6f52 100755 --- a/Tools/scripts/build_binaries.py +++ b/Tools/scripts/build_binaries.py @@ -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) diff --git a/Tools/scripts/generate_manifest.py b/Tools/scripts/generate_manifest.py index 424b09fff8..98187d98bb 100755 --- a/Tools/scripts/generate_manifest.py +++ b/Tools/scripts/generate_manifest.py @@ -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]