projects
/
fw
/
stlink
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[add] disasm script
[fw/stlink]
/
example
/
build.sh
1
#!/usr/bin/env sh
2
3
CHAIN=$HOME/sat/bin/arm-none-eabi
4
PATH=$HOME/sat/arm-none-eabi/bin:$PATH
5
6
$CHAIN-gcc \
7
-O2 \
8
-mlittle-endian \
9
-mthumb \
10
-mcpu=cortex-m3 \
11
-ffreestanding \
12
-nostdlib \
13
-nostdinc \
14
main.c
15
16
$CHAIN-objcopy \
17
-O binary \
18
a.out \
19
/tmp/foobar