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
|
|
|
|
make clean
|
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
|
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
|
|
|
|
|
2016-10-19 00:18:16 +08:00
|
|
|
# list all the images
|
|
|
|
ls -l src/arch/xtensa/*.ri
|