blob: 19cc576648c258042b5aa15a43e73ef9cb3e1056 [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
Manuel Pégourié-Gonnardf10f85f2016-01-08 15:02:05 +010014
15 echo; echo "*** $TARGET (release) ***"
Manuel Pégourié-Gonnardd13585f2015-10-30 11:15:40 +010016 yt -t $TARGET build
Manuel Pégourié-Gonnardf10f85f2016-01-08 15:02:05 +010017
18 echo; echo "*** $TARGET (debug) ***"
19 yt -t $TARGET build -d
Manuel Pégourié-Gonnard77d56bb2015-07-28 15:00:37 +020020}
21
22if uname -a | grep 'Linux.*x86' >/dev/null; then
23 yotta_build x86-linux-native
24fi
25if uname -a | grep 'Darwin.*x86' >/dev/null; then
26 yotta_build x86-osx-native
27fi
28if which armcc >/dev/null && armcc --help >/dev/null 2>&1; then
29 yotta_build frdm-k64f-armcc
30 #yotta_build nordic-nrf51822-16k-armcc
31fi
32if which arm-none-eabi-gcc >/dev/null; then
33 yotta_build frdm-k64f-gcc
34 #yotta_build st-nucleo-f401re-gcc # dirent
35 #yotta_build stm32f429i-disco-gcc # fails in mbed-hal-st-stm32f4
36 #yotta_build nordic-nrf51822-16k-gcc # fails in minar-platform
37 #yotta_build bbc-microbit-classic-gcc # fails in minar-platform
38 #yotta_build st-stm32f439zi-gcc # fails in mbed-hal-st-stm32f4
39 #yotta_build st-stm32f429i-disco-gcc # fails in mbed-hal-st-stm32f4
40fi