From 1031d9b88441e8ca928f2e5c2205d34c80a1c5ed Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 5 Mar 2021 15:38:48 +0100 Subject: [PATCH] firmware: create duplicate files for upload only Don't create copies of firmware files with version strings appended in the normal build. Only do this before uploading the firmware files. I have verified that "make" before this change and "make; contrib/prepare_upload.sh" after produce the same files. Close: OS#4413 Change-Id: I118a4ff397a178281c26a6b98112fa66b6f049ab --- contrib/jenkins.sh | 1 + contrib/prepare_upload.sh | 14 ++++++++++++++ firmware/Makefile | 4 ---- 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100755 contrib/prepare_upload.sh diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index 7ddfa6e8..2ad7a7f7 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -68,6 +68,7 @@ rm -rf $TOPDIR/firmware/bin/simtrace-cardem* if [ "x$publish" = "x--publish" ]; then echo echo "=============== UPLOAD BUILD ==============" + contrib/prepare_upload.sh cat > "/build/known_hosts" <$(OUTPUT)-$$@.elf.txt @$(OBJCOPY) -O binary $(OUTPUT)-$$@.elf $(OUTPUT)-$$@.bin - cp $(OUTPUT)-$$@.bin $(OUTPUT)-$$@-$(GIT_VERSION).bin - cp $(OUTPUT)-$$@.bin $(OUTPUT)-$$@-latest.bin @$(SIZE) $$^ $(OUTPUT)-$$@.elf $$(C_OBJECTS_$(1)): $(OBJ)/$(1)_%.o: %.c Makefile $(OBJ) $(BIN)