2017-06-06 17:45:07 +08:00
|
|
|
# fail on any errors
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# run autogen.sh
|
|
|
|
./autogen.sh
|
|
|
|
|
2016-10-19 00:18:16 +08:00
|
|
|
# build all images for all targets.
|
|
|
|
pwd=`pwd`
|
|
|
|
|
|
|
|
rm -fr src/arch/xtensa/*.ri
|
2016-09-21 22:57:22 +08:00
|
|
|
|
|
|
|
# Build for Baytrail
|
2016-10-19 00:18:16 +08:00
|
|
|
./configure --with-arch=xtensa --with-platform=baytrail --with-root-dir=$pwd/../xtensa-root/xtensa-byt-elf --host=xtensa-byt-elf
|
2017-12-05 04:09:54 +08:00
|
|
|
make clean
|
2016-09-21 22:57:22 +08:00
|
|
|
make
|
|
|
|
make bin
|
|
|
|
|
|
|
|
# Build for Cherrytrail
|
|
|
|
make clean
|
2016-10-19 00:18:16 +08:00
|
|
|
./configure --with-arch=xtensa --with-platform=cherrytrail --with-root-dir=$pwd/../xtensa-root/xtensa-byt-elf --host=xtensa-byt-elf
|
2016-09-21 22:57:22 +08:00
|
|
|
make
|
|
|
|
make bin
|
|
|
|
|
2018-01-22 07:48:35 +08:00
|
|
|
# Build for Broadwell
|
|
|
|
make clean
|
|
|
|
./configure --with-arch=xtensa --with-platform=broadwell --with-root-dir=$pwd/../xtensa-root/xtensa-hsw-elf --host=xtensa-hsw-elf
|
|
|
|
make
|
|
|
|
make bin
|
|
|
|
|
|
|
|
# Build for Haswell
|
|
|
|
make clean
|
|
|
|
./configure --with-arch=xtensa --with-platform=haswell --with-root-dir=$pwd/../xtensa-root/xtensa-hsw-elf --host=xtensa-hsw-elf
|
|
|
|
make
|
|
|
|
make bin
|
|
|
|
|
2018-02-09 00:25:58 +08:00
|
|
|
# Build for Apollolake
|
|
|
|
make clean
|
|
|
|
./configure --with-arch=xtensa --with-platform=apollolake --with-root-dir=$pwd/../xtensa-root/xtensa-bxt-elf --host=xtensa-bxt-elf
|
|
|
|
make
|
|
|
|
make bin
|
|
|
|
|
|
|
|
# Build for Cannonlake
|
|
|
|
make clean
|
|
|
|
./configure --with-arch=xtensa --with-platform=cannonlake --with-root-dir=$pwd/../xtensa-root/xtensa-cnl-elf --host=xtensa-cnl-elf
|
2018-01-25 14:42:38 +08:00
|
|
|
make
|
2018-02-09 00:25:58 +08:00
|
|
|
make bin
|
2018-01-22 07:48:35 +08:00
|
|
|
|
2016-10-19 00:18:16 +08:00
|
|
|
# list all the images
|
|
|
|
ls -l src/arch/xtensa/*.ri
|