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