blob: 59cedf42bf843d8e934a032e7b650be6a1f7a06b [file] [log] [blame]
Manuel Pégourié-Gonnard77d56bb2015-07-28 15:00:37 +02001#!/bin/sh
2
3# Do test builds of the yotta module for all supported targets
4
5set -eu
6
7yotta/create-module.sh
8cd yotta/module
9# yt update # needs network
10
11yotta_build()
12{
13 TARGET=$1
14 echo; echo "*** $TARGET ***"
15 yt target $TARGET
16 yt build
17}
18
19if uname -a | grep 'Linux.*x86' >/dev/null; then
20 yotta_build x86-linux-native
21fi
22if uname -a | grep 'Darwin.*x86' >/dev/null; then
23 yotta_build x86-osx-native
24fi
25if which armcc >/dev/null && armcc --help >/dev/null 2>&1; then
26 yotta_build frdm-k64f-armcc
27 #yotta_build nordic-nrf51822-16k-armcc
28fi
29if which arm-none-eabi-gcc >/dev/null; then
30 yotta_build frdm-k64f-gcc
31 #yotta_build st-nucleo-f401re-gcc # dirent
32 #yotta_build stm32f429i-disco-gcc # fails in mbed-hal-st-stm32f4
33 #yotta_build nordic-nrf51822-16k-gcc # fails in minar-platform
34 #yotta_build bbc-microbit-classic-gcc # fails in minar-platform
35 #yotta_build st-stm32f439zi-gcc # fails in mbed-hal-st-stm32f4
36 #yotta_build st-stm32f429i-disco-gcc # fails in mbed-hal-st-stm32f4
37fi