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