#!/bin/sh

VER=1.18

echo "Large - 29MHZ Unscaled"

./efinix_prep.sh hex/multi/${VER}/kawari_${VER}_${VER}_multi_LG_DVI-29MHZ-U.hex \
                 multiboot \
                 MAINLG-DVI-29MHZ-U \
                 ${VER}

./efinix_prep.sh hex/multi/${VER}/kawari_${VER}_${VER}_multi_LG_DVI-29MHZ-U.hex \
                 golden \
                 MAINLG-DVI-29MHZ-U \
                 ${VER}

echo "   Multiboot"
DISKNUMS="1 2 3 4 5" NAME=kawari VERSION=${VER} FPGA=efinix_t20 START_ADDRESS=679936 IMAGE_SIZE=679936 TYPE=multiboot VARIANT=MAINLG-DVI-29MHZ-U PAGE_SIZE=4096 NUM_DISKS=5 make -f Makefile clean zip

echo "   Golden"
DISKNUMS="1 2 3 4 5" NAME=kawari VERSION=${VER} FPGA=efinix_t20 START_ADDRESS=0 IMAGE_SIZE=679936 TYPE=golden VARIANT=MAINLG-DVI-29MHZ-U PAGE_SIZE=4096 NUM_DISKS=5 make -f Makefile clean zip

echo "Large - 27MHZ Scaled"

./efinix_prep.sh hex/multi/${VER}/kawari_${VER}_${VER}_multi_LG_DVI-27MHZ-S.hex \
                 multiboot \
                 MAINLG-DVI-27MHZ-S \
                 ${VER}

./efinix_prep.sh hex/multi/${VER}/kawari_${VER}_${VER}_multi_LG_DVI-27MHZ-S.hex \
                 golden \
                 MAINLG-DVI-27MHZ-S \
                 ${VER}

echo "   Multiboot"
DISKNUMS="1 2 3 4 5" NAME=kawari VERSION=${VER} FPGA=efinix_t20 START_ADDRESS=679936 IMAGE_SIZE=679936 TYPE=multiboot VARIANT=MAINLG-DVI-27MHZ-S PAGE_SIZE=4096 NUM_DISKS=5 make -f Makefile clean zip

echo "   Golden"
DISKNUMS="1 2 3 4 5" NAME=kawari VERSION=${VER} FPGA=efinix_t20 START_ADDRESS=0 IMAGE_SIZE=679936 TYPE=golden VARIANT=MAINLG-DVI-27MHZ-S PAGE_SIZE=4096 NUM_DISKS=5 make -f Makefile clean zip

echo "Large - 32MHZ RGB"

./efinix_prep.sh hex/multi/${VER}/kawari_${VER}_${VER}_multi_LG_RGB-32MHZ-U.hex \
                 multiboot \
                 MAINLG-RGB-32MHZ-U \
                 ${VER}

./efinix_prep.sh hex/multi/${VER}/kawari_${VER}_${VER}_multi_LG_RGB-32MHZ-U.hex \
                 golden \
                 MAINLG-RGB-32MHZ-U \
                 ${VER}

echo "   Multiboot"
DISKNUMS="1 2 3 4 5" NAME=kawari VERSION=${VER} FPGA=efinix_t20 START_ADDRESS=679936 IMAGE_SIZE=679936 TYPE=multiboot VARIANT=MAINLG-RGB-32MHZ-U PAGE_SIZE=4096 NUM_DISKS=5 make -f Makefile clean zip

echo "   Golden"
DISKNUMS="1 2 3 4 5" NAME=kawari VERSION=${VER} FPGA=efinix_t20 START_ADDRESS=0 IMAGE_SIZE=679936 TYPE=golden VARIANT=MAINLG-RGB-32MHZ-U PAGE_SIZE=4096 NUM_DISKS=5 make -f Makefile clean zip


echo "Mini - Baseline"

./efinix_prep.sh hex/multi/${VER}/kawari_${VER}_${VER}_multi_LH.hex \
                 multiboot \
                 MAINLH \
                 ${VER}

./efinix_prep.sh hex/multi/${VER}/kawari_${VER}_${VER}_multi_LH.hex \
                 golden \
                 MAINLH \
                 ${VER}

echo "   Multiboot"
DISKNUMS="1 2 3 4 5" NAME=kawari VERSION=${VER} FPGA=efinix_t20 START_ADDRESS=659456 IMAGE_SIZE=659456 TYPE=multiboot VARIANT=MAINLH PAGE_SIZE=4096 NUM_DISKS=5 make -f Makefile clean zip

echo "   Golden"
DISKNUMS="1 2 3 4 5" NAME=kawari VERSION=${VER} FPGA=efinix_t20 START_ADDRESS=0 IMAGE_SIZE=659456 TYPE=golden VARIANT=MAINLH PAGE_SIZE=4096 NUM_DISKS=5 make -f Makefile clean zip

echo "Mini - DOTC-1.2"

./efinix_prep.sh hex/multi/${VER}/kawari_${VER}_${VER}_multi_LH-DOTC-1.2.hex \
                 multiboot \
                 MAINLH-DOTC-1.2 \
                 ${VER}

./efinix_prep.sh hex/multi/${VER}/kawari_${VER}_${VER}_multi_LH-DOTC-1.2.hex \
                 golden \
                 MAINLH-DOTC-1.2 \
                 ${VER}

echo "   Multiboot"
DISKNUMS="1 2 3 4 5" NAME=kawari VERSION=${VER} FPGA=efinix_t20 START_ADDRESS=659456 IMAGE_SIZE=659456 TYPE=multiboot VARIANT=MAINLH-DOTC-1.2 PAGE_SIZE=4096 NUM_DISKS=5 make -f Makefile clean zip

echo "   Golden"
DISKNUMS="1 2 3 4 5" NAME=kawari VERSION=${VER} FPGA=efinix_t20 START_ADDRESS=0 IMAGE_SIZE=659456 TYPE=golden VARIANT=MAINLH-DOTC-1.2 PAGE_SIZE=4096 NUM_DISKS=5 make -f Makefile clean zip

echo "Mini - DOTC-1.5"

./efinix_prep.sh hex/multi/${VER}/kawari_${VER}_${VER}_multi_LH-DOTC-1.5.hex \
                 multiboot \
                 MAINLH-DOTC-1.5 \
                 ${VER}

./efinix_prep.sh hex/multi/${VER}/kawari_${VER}_${VER}_multi_LH-DOTC-1.5.hex \
                 golden \
                 MAINLH-DOTC-1.5 \
                 ${VER}

echo "   Multiboot"
DISKNUMS="1 2 3 4 5" NAME=kawari VERSION=${VER} FPGA=efinix_t20 START_ADDRESS=659456 IMAGE_SIZE=659456 TYPE=multiboot VARIANT=MAINLH-DOTC-1.5 PAGE_SIZE=4096 NUM_DISKS=5 make -f Makefile clean zip

echo "   Golden"
DISKNUMS="1 2 3 4 5" NAME=kawari VERSION=${VER} FPGA=efinix_t20 START_ADDRESS=0 IMAGE_SIZE=659456 TYPE=golden VARIANT=MAINLH-DOTC-1.5 PAGE_SIZE=4096 NUM_DISKS=5 make -f Makefile clean zip

