OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # Copyright (c) 2016, the Fletch project authors. Please see the AUTHORS file | 2 # Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE.md file. | 4 # BSD-style license that can be found in the LICENSE.md file. |
5 | 5 |
6 # Temporary script to build and flash a Dart application on the | 6 # Temporary script to build and flash a Dart application on the |
7 # discovery board. | 7 # discovery board. |
8 | 8 |
9 # To run on Linux first run | 9 # To run on Linux first run |
10 # $ tools/stm/one-stm-lib.sh | 10 # $ tools/stm/one-stm-lib.sh |
11 | 11 |
12 # To run on Mac first build | 12 # To run on Mac first build |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 $BUILDDIR/libone_disco_fletch.a \ | 85 $BUILDDIR/libone_disco_fletch.a \ |
86 -Wl,--end-group \ | 86 -Wl,--end-group \ |
87 -lstdc++ \ | 87 -lstdc++ \ |
88 -Wl,--no-whole-archive | 88 -Wl,--no-whole-archive |
89 | 89 |
90 echo "Generating flashable image" | 90 echo "Generating flashable image" |
91 $OBJCOPY -O binary $BUILDDIR/disco_fletch.elf $BUILDDIR/disco_fletch.bin | 91 $OBJCOPY -O binary $BUILDDIR/disco_fletch.elf $BUILDDIR/disco_fletch.bin |
92 | 92 |
93 echo "Flashing image" | 93 echo "Flashing image" |
94 tools/lk/flash-image.sh --disco $BUILDDIR/disco_fletch.bin | 94 tools/lk/flash-image.sh --disco $BUILDDIR/disco_fletch.bin |
OLD | NEW |