Generalize for Q

This commit is contained in:
Peter D. Gray 2024-01-09 10:50:08 -05:00
parent 6f23c781ae
commit f738f277c8
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C
2 changed files with 5 additions and 4 deletions

View File

@ -8,15 +8,16 @@ export MTOOLSRC=mtools.conf
MFORMAT=mformat
MCOPY=mcopy
RELEASES = $(wildcard ../../releases/*-mk4-*.dfu) $(wildcard ../*-mk4-RC1*.dfu)
RELEASES = $(wildcard ../../releases/*-mk4-*.dfu) $(wildcard ../*-mk4-RC1*.dfu) \
$(wildcard ../../releases/*-q1-*.dfu) $(wildcard ../*-q1-RC1*.dfu)
OUTPUT = mk4-recovery-$(shell date +%F).img.xz
OUTPUT = cc-recovery-$(shell date +%F).img.xz
all: output.img
output.img: $(RELEASES) Makefile
dd if=/dev/zero of=output.img bs=1024 count=160
$(MFORMAT) -v MK4RECOVER -f 160 -N 2022 -C z:
$(MFORMAT) -v CCRECOVER -f 160 -N 2022 -C z:
ls -1 $(RELEASES) | sort -n > flist.txt
cat internal-readme.txt flist.txt > tmp.txt
$(MCOPY) -bsmp tmp.txt z:README.TXT

View File

@ -14,4 +14,4 @@ side-loading or up/downgrade attacks.
This directory holds data and code to build a special SD-card disk
image with all possible releases. The goal is a single disk image that
can be used restore a Mk4 Coldcard of any (intended) version.
can be used restore a Coldcard of any (intended) version.