blob: 2648d3e2983e8a48eb6af6a8ec1b796bd79dd600 [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
Manuel Pégourié-Gonnard2f056a02015-09-18 14:37:54 +02009yt update || true # needs network
Manuel Pégourié-Gonnard77d56bb2015-07-28 15:00:37 +020010
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