|
|
|
@ -27,7 +27,8 @@ import generate_manifest
@@ -27,7 +27,8 @@ import generate_manifest
|
|
|
|
|
import gen_stable |
|
|
|
|
import build_binaries_history |
|
|
|
|
|
|
|
|
|
from board_list import AUTOBUILD_BOARDS, AP_PERIPH_BOARDS |
|
|
|
|
import board_list |
|
|
|
|
from board_list import AP_PERIPH_BOARDS |
|
|
|
|
|
|
|
|
|
if sys.version_info[0] < 3: |
|
|
|
|
running_python3 = False |
|
|
|
@ -67,6 +68,7 @@ class build_binaries(object):
@@ -67,6 +68,7 @@ class build_binaries(object):
|
|
|
|
|
def __init__(self, tags): |
|
|
|
|
self.tags = tags |
|
|
|
|
self.dirty = False |
|
|
|
|
self.board_list = board_list.BoardList() |
|
|
|
|
|
|
|
|
|
def progress(self, string): |
|
|
|
|
'''pretty-print progress''' |
|
|
|
@ -535,18 +537,15 @@ is bob we will attempt to checkout bob-AVR'''
@@ -535,18 +537,15 @@ is bob we will attempt to checkout bob-AVR'''
|
|
|
|
|
self.progress("Exception caught: %s" % |
|
|
|
|
self.get_exception_stacktrace(e)) |
|
|
|
|
|
|
|
|
|
def common_boards(self): |
|
|
|
|
'''returns list of boards common to all vehicles''' |
|
|
|
|
return AUTOBUILD_BOARDS |
|
|
|
|
|
|
|
|
|
def AP_Periph_boards(self): |
|
|
|
|
return AP_PERIPH_BOARDS |
|
|
|
|
|
|
|
|
|
def build_arducopter(self, tag): |
|
|
|
|
'''build Copter binaries''' |
|
|
|
|
|
|
|
|
|
boards = [] |
|
|
|
|
boards.extend(["skyviper-v2450", "aerofc-v1", "bebop", "CubeSolo", "CubeGreen-solo", "skyviper-journey"]) |
|
|
|
|
boards.extend(self.common_boards()[:]) |
|
|
|
|
boards.extend(["aerofc-v1", "bebop"]) |
|
|
|
|
boards.extend(self.board_list.find_autobuild_boards('Copter')) |
|
|
|
|
self.build_vehicle(tag, |
|
|
|
|
"ArduCopter", |
|
|
|
|
boards, |
|
|
|
@ -556,7 +555,7 @@ is bob we will attempt to checkout bob-AVR'''
@@ -556,7 +555,7 @@ is bob we will attempt to checkout bob-AVR'''
|
|
|
|
|
|
|
|
|
|
def build_arduplane(self, tag): |
|
|
|
|
'''build Plane binaries''' |
|
|
|
|
boards = self.common_boards()[:] |
|
|
|
|
boards = self.board_list.find_autobuild_boards('Plane')[:] |
|
|
|
|
boards.append("disco") |
|
|
|
|
self.build_vehicle(tag, |
|
|
|
|
"ArduPlane", |
|
|
|
@ -566,19 +565,17 @@ is bob we will attempt to checkout bob-AVR'''
@@ -566,19 +565,17 @@ is bob we will attempt to checkout bob-AVR'''
|
|
|
|
|
|
|
|
|
|
def build_antennatracker(self, tag): |
|
|
|
|
'''build Tracker binaries''' |
|
|
|
|
boards = self.common_boards()[:] |
|
|
|
|
self.build_vehicle(tag, |
|
|
|
|
"AntennaTracker", |
|
|
|
|
boards, |
|
|
|
|
self.board_list.find_autobuild_boards('Tracker')[:], |
|
|
|
|
"AntennaTracker", |
|
|
|
|
"antennatracker") |
|
|
|
|
|
|
|
|
|
def build_rover(self, tag): |
|
|
|
|
'''build Rover binaries''' |
|
|
|
|
boards = self.common_boards() |
|
|
|
|
self.build_vehicle(tag, |
|
|
|
|
"Rover", |
|
|
|
|
boards, |
|
|
|
|
self.board_list.find_autobuild_boards('Rover')[:], |
|
|
|
|
"Rover", |
|
|
|
|
"ardurover") |
|
|
|
|
|
|
|
|
@ -586,7 +583,7 @@ is bob we will attempt to checkout bob-AVR'''
@@ -586,7 +583,7 @@ is bob we will attempt to checkout bob-AVR'''
|
|
|
|
|
'''build Sub binaries''' |
|
|
|
|
self.build_vehicle(tag, |
|
|
|
|
"ArduSub", |
|
|
|
|
self.common_boards(), |
|
|
|
|
self.board_list.find_autobuild_boards('Sub')[:], |
|
|
|
|
"Sub", |
|
|
|
|
"ardusub") |
|
|
|
|
|
|
|
|
@ -601,10 +598,9 @@ is bob we will attempt to checkout bob-AVR'''
@@ -601,10 +598,9 @@ is bob we will attempt to checkout bob-AVR'''
|
|
|
|
|
|
|
|
|
|
def build_blimp(self, tag): |
|
|
|
|
'''build Blimp binaries''' |
|
|
|
|
boards = self.common_boards() |
|
|
|
|
self.build_vehicle(tag, |
|
|
|
|
"Blimp", |
|
|
|
|
boards, |
|
|
|
|
self.board_list.find_autobuild_boards('Blimp')[:], |
|
|
|
|
"Blimp", |
|
|
|
|
"blimp") |
|
|
|
|
|
|
|
|
|