From fcc2e86a6d5df8d8788646910dd29eef04334f9c Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Sun, 27 Oct 2019 12:32:36 -0400 Subject: [PATCH] remove hacker/secure builds --- in-docker-build.sh | 37 +++++++++++++++++++++---------------- targets/stm32l432/Makefile | 18 ++++++------------ 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/in-docker-build.sh b/in-docker-build.sh index 7edfcbc..11b1815 100755 --- a/in-docker-build.sh +++ b/in-docker-build.sh @@ -4,6 +4,7 @@ version=$1 export PREFIX=/opt/gcc-arm-none-eabi-8-2019-q3-update/bin/ cd /solo/targets/stm32l432 +ls make cbor @@ -11,9 +12,8 @@ out_dir="/builds" function build() { part=${1} - variant=${2} - output=${3:-${part}} - what="${part}-${variant}" + output=${2} + what="${part}" make full-clean @@ -27,22 +27,27 @@ function build() { cp ${out_hex} ${out_sha2} ${out_dir} } -build bootloader nonverifying -build bootloader verifying -build firmware hacker solo -build firmware hacker-debug-1 solo -build firmware hacker-debug-2 solo -build firmware secure solo -build firmware secure-non-solokeys solo +build bootloader-nonverifying bootloader +build bootloader-verifying bootloader +build firmware solo +build firmware-debug-1 solo +build firmware-debug-2 solo +build firmware solo cd ${out_dir} + bundle="bundle-hacker-${version}" -/opt/conda/bin/solo mergehex bootloader-nonverifying-${version}.hex firmware-hacker-${version}.hex ${bundle}.hex +/opt/conda/bin/solo mergehex bootloader-nonverifying-${version}.hex firmware-${version}.hex ${bundle}.hex sha256sum ${bundle}.hex > ${bundle}.sha2 + bundle="bundle-hacker-debug-1-${version}" -/opt/conda/bin/solo mergehex bootloader-nonverifying-${version}.hex firmware-hacker-debug-1-${version}.hex ${bundle}.hex -bundle="bundle-hacker-debug-2-${version}" -/opt/conda/bin/solo mergehex bootloader-nonverifying-${version}.hex firmware-hacker-debug-2-${version}.hex ${bundle}.hex -bundle="bundle-secure-non-solokeys-${version}" -/opt/conda/bin/solo mergehex bootloader-verifying-${version}.hex firmware-secure-non-solokeys-${version}.hex ${bundle}.hex +/opt/conda/bin/solo mergehex bootloader-nonverifying-${version}.hex firmware-debug-1-${version}.hex ${bundle}.hex +sha256sum ${bundle}.hex > ${bundle}.sha2 + +bundle="bundle-hacker-debug-2-${version}" +/opt/conda/bin/solo mergehex bootloader-nonverifying-${version}.hex firmware-debug-2-${version}.hex ${bundle}.hex +sha256sum ${bundle}.hex > ${bundle}.sha2 + +bundle="bundle-secure-non-solokeys-${version}" +/opt/conda/bin/solo mergehex --lock bootloader-verifying-${version}.hex firmware-${version}.hex ${bundle}.hex sha256sum ${bundle}.hex > ${bundle}.sha2 diff --git a/targets/stm32l432/Makefile b/targets/stm32l432/Makefile index a14a974..d9ce219 100644 --- a/targets/stm32l432/Makefile +++ b/targets/stm32l432/Makefile @@ -13,20 +13,14 @@ merge_hex=solo mergehex # The following are the main targets for reproducible builds. # TODO: better explanation -firmware-hacker: - $(MAKE) -f $(APPMAKE) -j8 solo.hex PREFIX=$(PREFIX) DEBUG=0 EXTRA_DEFINES='-DSOLO_HACKER -DFLASH_ROP=0' +firmware: + $(MAKE) -f $(APPMAKE) -j8 solo.hex PREFIX=$(PREFIX) DEBUG=0 -firmware-hacker-debug-1: - $(MAKE) -f $(APPMAKE) -j8 solo.hex PREFIX=$(PREFIX) DEBUG=1 EXTRA_DEFINES='-DSOLO_HACKER -DFLASH_ROP=0' +firmware-debug-1: + $(MAKE) -f $(APPMAKE) -j8 solo.hex PREFIX=$(PREFIX) DEBUG=1 -firmware-hacker-debug-2: - $(MAKE) -f $(APPMAKE) -j8 solo.hex PREFIX=$(PREFIX) DEBUG=2 EXTRA_DEFINES='-DSOLO_HACKER -DFLASH_ROP=0' - -firmware-secure-non-solokeys: - $(MAKE) -f $(APPMAKE) -j8 solo.hex PREFIX=$(PREFIX) DEBUG=0 EXTRA_DEFINES='-DFLASH_ROP=2' - -firmware-secure: - $(MAKE) -f $(APPMAKE) -j8 solo.hex PREFIX=$(PREFIX) DEBUG=0 EXTRA_DEFINES='-DUSE_SOLOKEYS_CERT -DFLASH_ROP=2' +firmware-debug-2: + $(MAKE) -f $(APPMAKE) -j8 solo.hex PREFIX=$(PREFIX) DEBUG=2 bootloader-nonverifying: $(MAKE) -f $(BOOTMAKE) -j8 bootloader.hex PREFIX=$(PREFIX) EXTRA_DEFINES='-DSOLO_HACKER' DEBUG=0