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 | pwd=`pwd` |
| 8 | |
| 9 | rm -fr src/arch/xtensa/*.ri |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 10 | |
Ranjani Sridharan | b5ca5c4 | 2018-02-26 09:17:32 -0800 | [diff] [blame^] | 11 | SUPPORTED_PLATFORMS=(byt cht bdw hsw apl cnl) |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 12 | |
Ranjani Sridharan | b5ca5c4 | 2018-02-26 09:17:32 -0800 | [diff] [blame^] | 13 | # build all images for chosen targets |
| 14 | if [ "$#" -eq 0 ] |
| 15 | then |
| 16 | PLATFORMS=${SUPPORTED_PLATFORMS[@]} |
| 17 | else |
| 18 | PLATFORMS=$@ |
| 19 | fi |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 20 | |
Ranjani Sridharan | b5ca5c4 | 2018-02-26 09:17:32 -0800 | [diff] [blame^] | 21 | for i in ${PLATFORMS[@]} |
| 22 | do |
| 23 | for j in ${SUPPORTED_PLATFORMS[@]} |
| 24 | do |
| 25 | if [ $j == $i ] |
| 26 | then |
| 27 | if [ $j == "byt" ] |
| 28 | then |
| 29 | PLATFORM="baytrail" |
| 30 | ROOT="xtensa-byt-elf" |
| 31 | fi |
| 32 | if [ $j == "cht" ] |
| 33 | then |
| 34 | PLATFORM="cherrytrail" |
| 35 | ROOT="xtensa-byt-elf" |
| 36 | fi |
| 37 | if [ $j == "bdw" ] |
| 38 | then |
| 39 | PLATFORM="broadwell" |
| 40 | ROOT="xtensa-hsw-elf" |
| 41 | fi |
| 42 | if [ $j == "hsw" ] |
| 43 | then |
| 44 | PLATFORM="haswell" |
| 45 | ROOT="xtensa-hsw-elf" |
| 46 | fi |
| 47 | if [ $j == "apl" ] |
| 48 | then |
| 49 | PLATFORM="apollolake" |
| 50 | ROOT="xtensa-bxt-elf" |
| 51 | fi |
| 52 | if [ $j == "cnl" ] |
| 53 | then |
| 54 | PLATFORM="cannonlake" |
| 55 | ROOT="xtensa-cnl-elf" |
| 56 | fi |
| 57 | ./configure --with-arch=xtensa --with-platform=$PLATFORM --with-root-dir=$pwd/../xtensa-root/$ROOT --host=$ROOT |
| 58 | make clean |
| 59 | make |
| 60 | make bin |
| 61 | fi |
| 62 | done |
| 63 | done |
Liam Girdwood | f198ad9 | 2018-01-21 23:48:35 +0000 | [diff] [blame] | 64 | |
Liam Girdwood | 8855ce5 | 2016-10-18 17:18:16 +0100 | [diff] [blame] | 65 | # list all the images |
| 66 | ls -l src/arch/xtensa/*.ri |