Erste version der Software für der Prototyp

Committer:
borlanic
Date:
Fri Mar 30 14:07:05 2018 +0000
Revision:
4:75df35ef4fb6
Parent:
0:380207fcb5c1
commentar

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