-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-sof.sh
executable file
·62 lines (55 loc) · 1.48 KB
/
build-sof.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
set -e
export SOF_PREFIX=`pwd`/../sof
export PATH=${SOF_PREFIX}/xtensa-byt-elf/bin/:$PATH
export PATH=${SOF_PREFIX}/xtensa-hsw-elf/bin/:$PATH
export PATH=${SOF_PREFIX}/xtensa-apl-elf/bin/:$PATH
export PATH=${SOF_PREFIX}/xtensa-cnl-elf/bin/:$PATH
export PATH=${SOF_PREFIX}/xtensa-imx-elf/bin/:$PATH
export PATH=${SOF_PREFIX}/xtensa-imx8m-elf/bin/:$PATH
cd ${SOF_PREFIX}
cd crosstool-ng
./bootstrap
./configure --prefix=`pwd`
make
make install
cp config-byt-gcc8.1-gdb8.1 .config
./ct-ng build
cp config-hsw-gcc8.1-gdb8.1 .config
./ct-ng build
cp config-apl-gcc8.1-gdb8.1 .config
./ct-ng build
cp config-cnl-gcc8.1-gdb8.1 .config
./ct-ng build
cp config-imx-gcc9.2-gdb8.3 .config
./ct-ng build
cp config-imx8m-gcc9.2-gdb8.3 .config
./ct-ng build
cp -r builds/* ${SOF_PREFIX}
cd ${SOF_PREFIX}/newlib-xtensa
./configure --target=xtensa-byt-elf --prefix=${SOF_PREFIX}/xtensa-root
make
make install
rm etc/config.cache
./configure --target=xtensa-hsw-elf --prefix=${SOF_PREFIX}/xtensa-root
make
make install
rm etc/config.cache
./configure --target=xtensa-apl-elf --prefix=${SOF_PREFIX}/xtensa-root
make
make install
rm etc/config.cache
./configure --target=xtensa-cnl-elf --prefix=${SOF_PREFIX}/xtensa-root
make
make install
rm etc/config.cache
./configure --target=xtensa-imx-elf --prefix=${SOF_PREFIX}/xtensa-root
make
make install
rm etc/config.cache
./configure --target=xtensa-imx8m-elf --prefix=${SOF_PREFIX}/xtensa-root
make
make install
cd ${SOF_PREFIX}
cd sof
./scripts/xtensa-build-all.sh -a