init

Dependencies:   mbed

Committer:
Nathan Yonkee
Date:
Fri Mar 02 07:12:37 2018 -0700
Revision:
9:d58e77ebd769
add mbed-os library

Who changed what in which revision?

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