What changed, and why it matters
This commit adds a build-system step that creates an additional release file for factory programming. It does not change any firmware code, cryptographic checks, or user-facing behavior. There is no indication of a security vulnerability.
No security action required. Treat as normal build-system maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change is in stm32/shared.mk, a Makefile used to build COLDCARD firmware. It extends the ‘rc2’ target to produce a second DFU file (RC2-*-factory.dfu) that bundles the signed production firmware together with the bootloader, in addition to the existing standalone firmware DFU. This is a build/packaging convenience for factory flashing and does not alter firmware logic, signatures, or verification.
Changed components
stm32/shared.mk build MakefileInspect captured patch +3 / −0
diff --git a/stm32/shared.mk b/stm32/shared.mk
index 53cbfdd..6bf29a3 100644
--- a/stm32/shared.mk
+++ b/stm32/shared.mk
@@ -117,12 +117,15 @@ rc1:
.PHONY: rc2
rc2: RC2_TIMESTAMP = $(shell date "+%F_%H%M")
rc2: RC2_FNAME = ./RC2-$(RC2_TIMESTAMP)-$(HW_MODEL)-coldcard.dfu
+rc2: RC2_FNAME_FACT = ./RC2-$(RC2_TIMESTAMP)-$(HW_MODEL)-factory.dfu
rc2: submods-match code-committed
$(SUBMAKE) clean
$(SUBMAKE) repro
test -f built/production.bin
$(SIGNIT) sign -m $(HW_MODEL) $(VERSION_STRING) -r built/production.bin $(PROD_KEYNUM) -o built/rc2.bin
$(PYTHON_MAKE_DFU) -b $(FIRMWARE_BASE):built/rc2.bin $(RC2_FNAME)
+ $(PYTHON_MAKE_DFU) -b $(FIRMWARE_BASE):built/rc2.bin \
+ -b $(BOOTLOADER_BASE):$(BOOTLOADER_DIR)/releases/$(BOOTLOADER_VERSION)/bootloader.bin $(RC2_FNAME_FACT)
ls -1 ./RC2-*.dfu
# This target just combines latest version of production firmware with bootrom into a DFU
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.