File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # function for building firmware
4+ function do_build() {
5+ descr=$1
6+ board=$2
7+ shift
8+ shift
9+ echo " building $descr $board "
10+ build_dir=/tmp/stm-build-$board
11+ make -B $@ BOARD=$board BUILD=$build_dir || exit 1
12+ mv $build_dir /firmware.dfu $dest_dir /$descr -$date -$git_tag .dfu
13+ rm -rf $build_dir
14+ }
15+
316# check/get parameters
417if [ $# != 1 ]; then
518 echo " usage: $0 <dest-dir>"
@@ -21,11 +34,7 @@ date=$(date '+%Y-%m-%d')
2134git_tag=" $( git describe --dirty || echo unknown) "
2235
2336# build the versions
24- for board in PYBV3 PYBV10; do
25- echo $board
26- lower_board=$( echo $board | tr A-Z a-z)
27- build_dir=/tmp/stm-build-$board
28- make -B BOARD=$board BUILD=$build_dir || exit 1
29- mv $build_dir /firmware.dfu $dest_dir /$lower_board -$date -$git_tag .dfu
30- rm -rf $build_dir
31- done
37+ do_build pybv3 PYBV3
38+ do_build pybv3-network PYBV3 MICROPY_PY_WIZNET5K=1 MICROPY_PY_CC3K=1
39+ do_build pybv10 PYBV10
40+ do_build pybv10-network PYBV10 MICROPY_PY_WIZNET5K=1 MICROPY_PY_CC3K=1
You can’t perform that action at this time.
0 commit comments