Update build scripts to generate .bin files for programming using OpenOCD on a Pi

Change-Id: I39909acc3a1fe4504d5e4c2d20d11b23e3878058
This commit is contained in:
David Banks 2021-09-21 10:57:25 +01:00
parent 246cb88e72
commit 58978d3e05
2 changed files with 7 additions and 1 deletions

View File

@ -30,6 +30,7 @@ build: $(TARGET).mcs
$(TARGET).mcs: $(TARGET).bit
promgen -u 0 $(TARGET).bit -o $(TARGET).mcs -p mcs -w -spi -s 8192
promgen -u 0 $(TARGET).bit -o $(TARGET).bin -p bin -w -spi -s 8192
rm -f $(TARGET).cfi $(TARGET).prm
working/$(PROJECT).bit:

View File

@ -16,6 +16,9 @@ NAME=${DIR}/icemulti
mkdir -p ${DIR}
for FORMAT in mcs bin
do
promgen \
-u 0 loader/MultiBootLoader.bit \
-u 54000 unknown/UnknownAdapter.bit \
@ -23,6 +26,8 @@ promgen \
-u FC000 icez80/icez80.bit \
-u 150000 ice65c02/ice65c02.bit \
-u 1A4000 ice6809/ice6809.bit \
-o $NAME.mcs -p mcs -w -spi -s 8192
-o $NAME.$FORMAT -p $FORMAT -w -spi -s 8192
done
rm -f $NAME.cfi $NAME.prm