2018-10-30 15:55:12 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2018-10-31 19:26:44 +01:00
|
|
|
mkdir -p release
|
|
|
|
mkdir -p logs
|
|
|
|
|
2018-10-30 15:55:12 +01:00
|
|
|
all_platforms=(rpi3)
|
|
|
|
for platform in "${all_platforms[@]}"; do
|
2018-11-01 20:18:11 +01:00
|
|
|
make -C buildroot BR2_EXTERNAL=../buildroot-external clean
|
2018-10-31 19:26:44 +01:00
|
|
|
make -C buildroot BR2_EXTERNAL=../buildroot-external mycroftos_${platform}_defconfig
|
2018-10-30 15:55:12 +01:00
|
|
|
|
|
|
|
# Optional if you need to change stuff, uncomment the next line.
|
2018-11-01 20:18:11 +01:00
|
|
|
make -C buildroot BR2_EXTERNAL=../buildroot-external menuconfig
|
2018-10-30 15:55:12 +01:00
|
|
|
|
|
|
|
make -C buildroot BR2_EXTERNAL=../buildroot-external 2>&1 | tee logs/buildroot_output.txt
|
|
|
|
cp -f buildroot/output/images/sdcard.img release/MycroftOS_${platform}.img
|
|
|
|
done
|