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