-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuilder.sh
executable file
·43 lines (35 loc) · 961 Bytes
/
builder.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
set -eo pipefail; [[ "$TRACE" ]] && set -x
main() {
{
# Clone sources
cd /opt
git clone https://github.com/heXeo/toolchain-avr.git -b alpine
cd toolchain-avr
./tools.bash
./clean.bash
# Build avr-binutils
./binutils.build.bash
tar --hard-dereference -cvjf avr-binutils-2.24.tar.bz2 -C objdir/ .
./clean.bash
rm -Rf ./objdir
tar -xvjf avr-binutils-2.24.tar.bz2 -C /usr/
# Build avr-gcc
./gcc.build.bash
tar --hard-dereference -cvjf avr-gcc-4.8.1.tar.bz2 -C objdir/ .
./clean.bash
rm -Rf ./objdir
tar -xvjf avr-gcc-4.8.1.tar.bz2 -C /usr/
# Build avr-libc
./avr-libc.build.bash
tar --hard-dereference -cvjf avr-libc-1.8.0.tar.bz2 -C objdir/ .
./clean.bash
rm -Rf ./objdir
# Build avrdude
./avrdude.build.bash
tar --hard-dereference -cvjf avrdude-6.0.1.tar.bz2 -C objdir/ .
./clean.bash
rm -Rf ./objdir
} >&2
}
main "$@"