blob: 6035c66a5d102ef45fd2fa77431fc9457edb69bf [file] [log] [blame]
Liam Girdwood58a99d62017-06-06 10:45:07 +01001# fail on any errors
2set -e
3
4# run autogen.sh
5./autogen.sh
6
Liam Girdwood8855ce52016-10-18 17:18:16 +01007# build all images for all targets.
8pwd=`pwd`
9
10rm -fr src/arch/xtensa/*.ri
Liam Girdwoodc0dfb4e2016-09-21 15:57:22 +010011
12# Build for Baytrail
Liam Girdwood8855ce52016-10-18 17:18:16 +010013./configure --with-arch=xtensa --with-platform=baytrail --with-root-dir=$pwd/../xtensa-root/xtensa-byt-elf --host=xtensa-byt-elf
Liam Girdwoodeaf0c062017-12-04 20:09:54 +000014make clean
Liam Girdwoodc0dfb4e2016-09-21 15:57:22 +010015make
16make bin
17
18# Build for Cherrytrail
19make clean
Liam Girdwood8855ce52016-10-18 17:18:16 +010020./configure --with-arch=xtensa --with-platform=cherrytrail --with-root-dir=$pwd/../xtensa-root/xtensa-byt-elf --host=xtensa-byt-elf
Liam Girdwoodc0dfb4e2016-09-21 15:57:22 +010021make
22make bin
23
Liam Girdwoodf198ad92018-01-21 23:48:35 +000024# Build for Broadwell
25make clean
26./configure --with-arch=xtensa --with-platform=broadwell --with-root-dir=$pwd/../xtensa-root/xtensa-hsw-elf --host=xtensa-hsw-elf
27make
28make bin
29
30# Build for Haswell
31make clean
32./configure --with-arch=xtensa --with-platform=haswell --with-root-dir=$pwd/../xtensa-root/xtensa-hsw-elf --host=xtensa-hsw-elf
33make
34make bin
35
36
Liam Girdwood8855ce52016-10-18 17:18:16 +010037# list all the images
38ls -l src/arch/xtensa/*.ri