mbed-os

Dependents:   cobaLCDJoyMotor_Thread odometry_omni_3roda_v3 odometry_omni_3roda_v1 odometry_omni_3roda_v2 ... more

Committer:
be_bryan
Date:
Mon Dec 11 17:54:04 2017 +0000
Revision:
0:b74591d5ab33
motor ++

Who changed what in which revision?

UserRevisionLine numberNew contents of line
be_bryan 0:b74591d5ab33 1 #!/usr/bin/env python2
be_bryan 0:b74591d5ab33 2
be_bryan 0:b74591d5ab33 3 """
be_bryan 0:b74591d5ab33 4 Travis-CI build script
be_bryan 0:b74591d5ab33 5
be_bryan 0:b74591d5ab33 6 mbed SDK
be_bryan 0:b74591d5ab33 7 Copyright (c) 2011-2013 ARM Limited
be_bryan 0:b74591d5ab33 8
be_bryan 0:b74591d5ab33 9 Licensed under the Apache License, Version 2.0 (the "License");
be_bryan 0:b74591d5ab33 10 you may not use this file except in compliance with the License.
be_bryan 0:b74591d5ab33 11 You may obtain a copy of the License at
be_bryan 0:b74591d5ab33 12
be_bryan 0:b74591d5ab33 13 http://www.apache.org/licenses/LICENSE-2.0
be_bryan 0:b74591d5ab33 14
be_bryan 0:b74591d5ab33 15 Unless required by applicable law or agreed to in writing, software
be_bryan 0:b74591d5ab33 16 distributed under the License is distributed on an "AS IS" BASIS,
be_bryan 0:b74591d5ab33 17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
be_bryan 0:b74591d5ab33 18 See the License for the specific language governing permissions and
be_bryan 0:b74591d5ab33 19 limitations under the License.
be_bryan 0:b74591d5ab33 20 """
be_bryan 0:b74591d5ab33 21
be_bryan 0:b74591d5ab33 22 import os
be_bryan 0:b74591d5ab33 23 import sys
be_bryan 0:b74591d5ab33 24
be_bryan 0:b74591d5ab33 25 ################################################################################
be_bryan 0:b74591d5ab33 26 # Configure builds here
be_bryan 0:b74591d5ab33 27 # "libs" can contain "dsp", "usb"
be_bryan 0:b74591d5ab33 28
be_bryan 0:b74591d5ab33 29 build_list = (
be_bryan 0:b74591d5ab33 30 { "target": "LPC1768", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 31 { "target": "LPC11U24", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 32 { "target": "OC_MBUINO", "toolchains": "GCC_ARM", "libs": [] },
be_bryan 0:b74591d5ab33 33
be_bryan 0:b74591d5ab33 34 { "target": "LPC11U24_301", "toolchains": "GCC_ARM", "libs": [] },
be_bryan 0:b74591d5ab33 35
be_bryan 0:b74591d5ab33 36 { "target": "B96B_F446VE", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 37 { "target": "NUCLEO_L053R8", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 38 { "target": "NUCLEO_L152RE", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 39 { "target": "NUCLEO_F030R8", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 40 { "target": "NUCLEO_F031K6", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 41 { "target": "NUCLEO_F042K6", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 42 { "target": "NUCLEO_F070RB", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 43 { "target": "NUCLEO_F072RB", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 44 { "target": "NUCLEO_F091RC", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 45 { "target": "NUCLEO_F103RB", "toolchains": "GCC_ARM" },
be_bryan 0:b74591d5ab33 46 { "target": "NUCLEO_F207ZG", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 47 { "target": "NUCLEO_F302R8", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 48 { "target": "NUCLEO_F303K8", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 49 { "target": "NUCLEO_F303RE", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 50 { "target": "NUCLEO_F303ZE", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 51 { "target": "NUCLEO_F334R8", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 52 { "target": "NUCLEO_F401RE", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 53 { "target": "NUCLEO_F410RB", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 54 { "target": "NUCLEO_F411RE", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 55 { "target": "NUCLEO_F412ZG", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 56 { "target": "NUCLEO_L432KC", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 57 { "target": "NUCLEO_L476RG", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 58 { "target": "NUCLEO_L011K4", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 59 { "target": "NUCLEO_L031K6", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 60 { "target": "NUCLEO_L073RZ", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 61 { "target": "NUCLEO_F429ZI", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 62 { "target": "NUCLEO_F446RE", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 63 { "target": "NUCLEO_F446ZE", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 64 { "target": "NUCLEO_F746ZG", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 65 { "target": "NUCLEO_F767ZI", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 66 { "target": "NUCLEO_L496ZG", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 67
be_bryan 0:b74591d5ab33 68 { "target": "MOTE_L152RC", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 69
be_bryan 0:b74591d5ab33 70 { "target": "ELMO_F411RE", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 71
be_bryan 0:b74591d5ab33 72 { "target": "MTS_MDOT_F405RG", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 73 { "target": "MTS_MDOT_F411RE", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 74 { "target": "MTS_DRAGONFLY_F411RE", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 75 { "target": "ARCH_MAX", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 76
be_bryan 0:b74591d5ab33 77 { "target": "DISCO_F051R8", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 78 { "target": "DISCO_F303VC", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 79 { "target": "DISCO_F334C8", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 80 { "target": "DISCO_F401VC", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 81
be_bryan 0:b74591d5ab33 82 { "target": "DISCO_F407VG", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 83 { "target": "DISCO_F413ZH", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 84 { "target": "DISCO_F429ZI", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 85 { "target": "DISCO_F469NI", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 86 { "target": "DISCO_F746NG", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 87 { "target": "DISCO_F769NI", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 88 { "target": "DISCO_L475VG_IOT01A", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 89 { "target": "DISCO_L476VG", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 90 { "target": "DISCO_L072CZ_LRWAN1", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 91
be_bryan 0:b74591d5ab33 92 { "target": "LPC1114", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 93 { "target": "LPC11U35_401", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 94 { "target": "UBLOX_C027", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 95 { "target": "LPC11U35_501", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 96 { "target": "LPC11U68", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 97 { "target": "LPC11U37H_401", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 98
be_bryan 0:b74591d5ab33 99 { "target": "KL05Z", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 100 { "target": "KL25Z", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 101 { "target": "KL27Z", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 102 { "target": "KL43Z", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 103 { "target": "KL46Z", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 104 { "target": "K20D50M", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 105 { "target": "TEENSY3_1", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 106 { "target": "K64F", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 107 { "target": "K22F", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 108 { "target": "LPC4088", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 109 { "target": "ARCH_PRO", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 110 { "target": "LPC1549", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 111 { "target": "NRF51822", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 112 { "target": "DELTA_DFCM_NNN40", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 113 { "target": "NRF51_DK", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 114 { "target": "NRF51_MICROBIT", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 115
be_bryan 0:b74591d5ab33 116 { "target": "EFM32ZG_STK3200", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 117 { "target": "EFM32HG_STK3400", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 118 { "target": "EFM32LG_STK3600", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 119 { "target": "EFM32GG_STK3700", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 120 { "target": "EFM32WG_STK3800", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 121 { "target": "EFM32PG_STK3401", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 122
be_bryan 0:b74591d5ab33 123 { "target": "MAXWSNENV", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 124 { "target": "MAX32600MBED", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 125 { "target": "MAX32620HSP", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 126
be_bryan 0:b74591d5ab33 127 { "target": "SAMR21G18A", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 128 { "target": "SAMD21J18A", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 129 { "target": "SAMD21G18A", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 130 { "target": "SAML21J18A", "toolchains": "GCC_ARM", "libs": ["dsp"] },
be_bryan 0:b74591d5ab33 131
be_bryan 0:b74591d5ab33 132 { "target": "NUMAKER_PFM_NUC472", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 133 { "target": "NUMAKER_PFM_M453", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 134 { "target": "NUMAKER_PFM_M487", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] },
be_bryan 0:b74591d5ab33 135 )
be_bryan 0:b74591d5ab33 136
be_bryan 0:b74591d5ab33 137 ################################################################################
be_bryan 0:b74591d5ab33 138 # Configure example test building (linking against external mbed SDK libraries)
be_bryan 0:b74591d5ab33 139
be_bryan 0:b74591d5ab33 140 linking_list = [
be_bryan 0:b74591d5ab33 141 {"target": "LPC1768",
be_bryan 0:b74591d5ab33 142 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 143 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_15", "MBED_16", "MBED_17"],
be_bryan 0:b74591d5ab33 144 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 145 }
be_bryan 0:b74591d5ab33 146 },
be_bryan 0:b74591d5ab33 147 {"target": "K64F",
be_bryan 0:b74591d5ab33 148 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 149 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 150 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 151 }
be_bryan 0:b74591d5ab33 152 },
be_bryan 0:b74591d5ab33 153 {"target": "K22F",
be_bryan 0:b74591d5ab33 154 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 155 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 156 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 157 }
be_bryan 0:b74591d5ab33 158 },
be_bryan 0:b74591d5ab33 159 {"target": "KL43Z",
be_bryan 0:b74591d5ab33 160 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 161 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 162 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 163 }
be_bryan 0:b74591d5ab33 164 },
be_bryan 0:b74591d5ab33 165 {"target": "NUCLEO_F446RE",
be_bryan 0:b74591d5ab33 166 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 167 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 168 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 169 }
be_bryan 0:b74591d5ab33 170 },
be_bryan 0:b74591d5ab33 171 {"target": "NUCLEO_F446ZE",
be_bryan 0:b74591d5ab33 172 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 173 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 174 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 175 }
be_bryan 0:b74591d5ab33 176 },
be_bryan 0:b74591d5ab33 177 {"target": "NUCLEO_F401RE",
be_bryan 0:b74591d5ab33 178 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 179 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 180 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 181 }
be_bryan 0:b74591d5ab33 182 },
be_bryan 0:b74591d5ab33 183 {"target": "NUCLEO_F411RE",
be_bryan 0:b74591d5ab33 184 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 185 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 186 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 187 }
be_bryan 0:b74591d5ab33 188 },
be_bryan 0:b74591d5ab33 189 {"target": "NUCLEO_F412ZG",
be_bryan 0:b74591d5ab33 190 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 191 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 192 }
be_bryan 0:b74591d5ab33 193 },
be_bryan 0:b74591d5ab33 194 {"target": "NUCLEO_F429ZI",
be_bryan 0:b74591d5ab33 195 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 196 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 197 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 198 }
be_bryan 0:b74591d5ab33 199 },
be_bryan 0:b74591d5ab33 200 {"target": "NUCLEO_F207ZG",
be_bryan 0:b74591d5ab33 201 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 202 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 203 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 204 }
be_bryan 0:b74591d5ab33 205 },
be_bryan 0:b74591d5ab33 206 {"target": "NUCLEO_F746ZG",
be_bryan 0:b74591d5ab33 207 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 208 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 209 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 210 }
be_bryan 0:b74591d5ab33 211 },
be_bryan 0:b74591d5ab33 212 {"target": "NUCLEO_F767ZI",
be_bryan 0:b74591d5ab33 213 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 214 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 215 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 216 }
be_bryan 0:b74591d5ab33 217 },
be_bryan 0:b74591d5ab33 218 {"target": "NUCLEO_L476RG",
be_bryan 0:b74591d5ab33 219 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 220 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 221 }
be_bryan 0:b74591d5ab33 222 },
be_bryan 0:b74591d5ab33 223 {"target": "DISCO_F429ZI",
be_bryan 0:b74591d5ab33 224 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 225 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 226 }
be_bryan 0:b74591d5ab33 227 },
be_bryan 0:b74591d5ab33 228 {"target": "DISCO_F407VG",
be_bryan 0:b74591d5ab33 229 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 230 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 231 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 232 }
be_bryan 0:b74591d5ab33 233 },
be_bryan 0:b74591d5ab33 234 {"target": "DISCO_F413ZH",
be_bryan 0:b74591d5ab33 235 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 236 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 237 }
be_bryan 0:b74591d5ab33 238 },
be_bryan 0:b74591d5ab33 239 {"target": "NUCLEO_F303ZE",
be_bryan 0:b74591d5ab33 240 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 241 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 242 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 243 }
be_bryan 0:b74591d5ab33 244 },
be_bryan 0:b74591d5ab33 245 {"target": "DISCO_L475VG_IOT01A",
be_bryan 0:b74591d5ab33 246 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 247 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 248 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 249 }
be_bryan 0:b74591d5ab33 250 },
be_bryan 0:b74591d5ab33 251 {"target": "DISCO_L476VG",
be_bryan 0:b74591d5ab33 252 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 253 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 254 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 255 }
be_bryan 0:b74591d5ab33 256 },
be_bryan 0:b74591d5ab33 257 {"target": "DISCO_L072CZ_LRWAN1",
be_bryan 0:b74591d5ab33 258 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 259 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 260 }
be_bryan 0:b74591d5ab33 261 },
be_bryan 0:b74591d5ab33 262 {"target": "NUMAKER_PFM_NUC472",
be_bryan 0:b74591d5ab33 263 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 264 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 265 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 266 }
be_bryan 0:b74591d5ab33 267 },
be_bryan 0:b74591d5ab33 268 {"target": "NUMAKER_PFM_M453",
be_bryan 0:b74591d5ab33 269 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 270 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 271 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 272 }
be_bryan 0:b74591d5ab33 273 },
be_bryan 0:b74591d5ab33 274 {"target": "NUMAKER_PFM_M487",
be_bryan 0:b74591d5ab33 275 "toolchains": "GCC_ARM",
be_bryan 0:b74591d5ab33 276 "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
be_bryan 0:b74591d5ab33 277 "usb" : ["USB_1", "USB_2" ,"USB_3"],
be_bryan 0:b74591d5ab33 278 }
be_bryan 0:b74591d5ab33 279 }
be_bryan 0:b74591d5ab33 280 ]
be_bryan 0:b74591d5ab33 281
be_bryan 0:b74591d5ab33 282 ################################################################################
be_bryan 0:b74591d5ab33 283
be_bryan 0:b74591d5ab33 284 # Driver
be_bryan 0:b74591d5ab33 285
be_bryan 0:b74591d5ab33 286 def run_builds(dry_run):
be_bryan 0:b74591d5ab33 287 for build in build_list:
be_bryan 0:b74591d5ab33 288 toolchain_list = build["toolchains"]
be_bryan 0:b74591d5ab33 289 if type(toolchain_list) != type([]): toolchain_list = [toolchain_list]
be_bryan 0:b74591d5ab33 290 for toolchain in toolchain_list:
be_bryan 0:b74591d5ab33 291 cmdline = "python tools/build.py -m %s -t %s -j 4 -c --silent "% (build["target"], toolchain)
be_bryan 0:b74591d5ab33 292 libs = build.get("libs", [])
be_bryan 0:b74591d5ab33 293 if libs:
be_bryan 0:b74591d5ab33 294 cmdline = cmdline + " ".join(["--" + l for l in libs])
be_bryan 0:b74591d5ab33 295 print "Executing: " + cmdline
be_bryan 0:b74591d5ab33 296 if not dry_run:
be_bryan 0:b74591d5ab33 297 if os.system(cmdline) != 0:
be_bryan 0:b74591d5ab33 298 sys.exit(1)
be_bryan 0:b74591d5ab33 299
be_bryan 0:b74591d5ab33 300
be_bryan 0:b74591d5ab33 301 def run_test_linking(dry_run):
be_bryan 0:b74591d5ab33 302 """ Function run make.py commands to build and link simple mbed SDK
be_bryan 0:b74591d5ab33 303 tests against few libraries to make sure there are no simple linking errors.
be_bryan 0:b74591d5ab33 304 """
be_bryan 0:b74591d5ab33 305 for link in linking_list:
be_bryan 0:b74591d5ab33 306 toolchain_list = link["toolchains"]
be_bryan 0:b74591d5ab33 307 if type(toolchain_list) != type([]):
be_bryan 0:b74591d5ab33 308 toolchain_list = [toolchain_list]
be_bryan 0:b74591d5ab33 309 for toolchain in toolchain_list:
be_bryan 0:b74591d5ab33 310 tests = link["tests"]
be_bryan 0:b74591d5ab33 311 # Call make.py for each test group for particular library
be_bryan 0:b74591d5ab33 312 for test_lib in tests:
be_bryan 0:b74591d5ab33 313 test_names = tests[test_lib]
be_bryan 0:b74591d5ab33 314 test_lib_switch = "--" + test_lib if test_lib else ""
be_bryan 0:b74591d5ab33 315 cmdline = "python tools/make.py -m %s -t %s -c --silent %s -n %s " % (link["target"], toolchain, test_lib_switch, ",".join(test_names))
be_bryan 0:b74591d5ab33 316 print "Executing: " + cmdline
be_bryan 0:b74591d5ab33 317 if not dry_run:
be_bryan 0:b74591d5ab33 318 if os.system(cmdline) != 0:
be_bryan 0:b74591d5ab33 319 sys.exit(1)
be_bryan 0:b74591d5ab33 320
be_bryan 0:b74591d5ab33 321 def run_test_testsuite(dry_run):
be_bryan 0:b74591d5ab33 322 cmdline = "python tools/singletest.py --version"
be_bryan 0:b74591d5ab33 323 print "Executing: " + cmdline
be_bryan 0:b74591d5ab33 324 if not dry_run:
be_bryan 0:b74591d5ab33 325 if os.system(cmdline) != 0:
be_bryan 0:b74591d5ab33 326 sys.exit(1)
be_bryan 0:b74591d5ab33 327
be_bryan 0:b74591d5ab33 328 if __name__ == "__main__":
be_bryan 0:b74591d5ab33 329 run_builds("-s" in sys.argv)
be_bryan 0:b74591d5ab33 330 run_test_linking("-s" in sys.argv)
be_bryan 0:b74591d5ab33 331 run_test_testsuite("-s" in sys.argv)