From 6b97807f51cb212f230917a12c682bbc3b437f09 Mon Sep 17 00:00:00 2001 From: Nicolas Stalder Date: Sat, 16 Feb 2019 18:36:04 +0100 Subject: [PATCH] Easier hex make targets for docker build --- targets/stm32l432/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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'