Liam Girdwood | 58a99d6 | 2017-06-06 10:45:07 +0100 | [diff] [blame] | 1 | # fail on any errors |
| 2 | set -e |
| 3 | |
| 4 | # run autogen.sh |
| 5 | ./autogen.sh |
| 6 | |
Liam Girdwood | 8855ce5 | 2016-10-18 17:18:16 +0100 | [diff] [blame] | 7 | # build all images for all targets. |
| 8 | pwd=`pwd` |
| 9 | |
| 10 | rm -fr src/arch/xtensa/*.ri |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 11 | |
| 12 | # Build for Baytrail |
Liam Girdwood | 8855ce5 | 2016-10-18 17:18:16 +0100 | [diff] [blame] | 13 | ./configure --with-arch=xtensa --with-platform=baytrail --with-root-dir=$pwd/../xtensa-root/xtensa-byt-elf --host=xtensa-byt-elf |
Liam Girdwood | eaf0c06 | 2017-12-04 20:09:54 +0000 | [diff] [blame] | 14 | make clean |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 15 | make |
| 16 | make bin |
| 17 | |
| 18 | # Build for Cherrytrail |
| 19 | make clean |
Liam Girdwood | 8855ce5 | 2016-10-18 17:18:16 +0100 | [diff] [blame] | 20 | ./configure --with-arch=xtensa --with-platform=cherrytrail --with-root-dir=$pwd/../xtensa-root/xtensa-byt-elf --host=xtensa-byt-elf |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 21 | make |
| 22 | make bin |
| 23 | |
Liam Girdwood | f198ad9 | 2018-01-21 23:48:35 +0000 | [diff] [blame^] | 24 | # Build for Broadwell |
| 25 | make clean |
| 26 | ./configure --with-arch=xtensa --with-platform=broadwell --with-root-dir=$pwd/../xtensa-root/xtensa-hsw-elf --host=xtensa-hsw-elf |
| 27 | make |
| 28 | make bin |
| 29 | |
| 30 | # Build for Haswell |
| 31 | make clean |
| 32 | ./configure --with-arch=xtensa --with-platform=haswell --with-root-dir=$pwd/../xtensa-root/xtensa-hsw-elf --host=xtensa-hsw-elf |
| 33 | make |
| 34 | make bin |
| 35 | |
| 36 | |
Liam Girdwood | 8855ce5 | 2016-10-18 17:18:16 +0100 | [diff] [blame] | 37 | # list all the images |
| 38 | ls -l src/arch/xtensa/*.ri |