Committer:
borlanic
Date:
Thu Mar 29 07:02:09 2018 +0000
Revision:
0:380207fcb5c1
Child:
4:75df35ef4fb6
Encoder, IMU --> OK; Controller --> in bearbeitung

Who changed what in which revision?

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