diff --git a/targets/stm32l432/Makefile b/targets/stm32l432/Makefile index 8634507..d769a30 100644 --- a/targets/stm32l432/Makefile +++ b/targets/stm32l432/Makefile @@ -9,6 +9,25 @@ merge_hex=../../tools/solotool.py mergehex .PHONY: all all-hacker all-locked debugboot-app debugboot-boot boot-sig-checking boot-no-sig build-release-locked build-release build-release build-hacker build-debugboot clean clean2 flash flash_dfu flashboot detach cbor test + +# The following are the main targets for reproducible builds. +# TODO: better explanation +firmware-hacker: + $(MAKE) -f $(APPMAKE) -j8 solo.hex PREFIX=$(PREFIX) DEBUG=$(DEBUG) EXTRA_DEFINES='-DSOLO_HACKER -DFLASH_ROP=1' + +firmware-secure: + $(MAKE) -f $(APPMAKE) -j8 solo.hex PREFIX=$(PREFIX) DEBUG=$(DEBUG) EXTRA_DEFINES='-DUSE_SOLOKEYS_CERT -DFLASH_ROP=2' + +bootloader-nonverifying: + $(MAKE) -f $(BOOTMAKE) -j8 bootloader.hex PREFIX=$(PREFIX) EXTRA_DEFINES='-DSOLO_HACKER' DEBUG=0 + +bootloader-verifying: + $(MAKE) -f $(BOOTMAKE) -j8 bootloader.hex PREFIX=$(PREFIX) DEBUG=0 + +full-clean: clean2 + + +# The older targets, may be re-organised all: $(MAKE) -f $(APPMAKE) -j8 solo.hex PREFIX=$(PREFIX) DEBUG=$(DEBUG) EXTRA_DEFINES='-DFLASH_ROP=1'