Project

General

Profile

Feature #3452

name binaries including their git version number

Added by laforge 11 months ago. Updated 3 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
firmware
Target version:
-
Start date:
08/07/2018
Due date:
% Done:

100%


Description

At http://ftp.osmocom.org/binaries/simtrace2/firmware/ we now have published binaries, which is nice. However, it would be even nicer if they included the git version in their name, something like simtrace-cardem-dfu-0.2.1-abcdef.bin with simtrace-cardem-dfu.bin being a symlink to that.

This has generaly proven good practise in other projects.

It may be easiest to actually adjust he makefile of simtrace2.git to generate the files + symlinks like that, and then simply rsync those over to the ftp.

History

#1 Updated by laforge 11 months ago

  • Category set to firmware

#2 Updated by demodulate 10 months ago

A simple modification for the combined target:

diff --git a/firmware/Makefile b/firmware/Makefile
index ca22bdd..7a8221c 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -183,6 +183,9 @@ OUTPUT := $(BIN)/$(OUTPUT)
 all: apps/$(APP)/usb_strings_generated.h $(BIN) $(OBJ) $(MEMORIES)

 combined: $(OUTPUT)-combined.bin
+       mv $(OUTPUT)-combined.bin $(OUTPUT)-combined-$(GIT_VERSION).bin
+       ln -s $(BOARD)-$(APP)-combined-$(GIT_VERSION).bin $(OUTPUT)-combined.bin
+

 $(BIN)/$(BOARD)-dfu-flash-padded.bin: $(BIN)/$(BOARD)-dfu-flash.bin
        dd if=/dev/zero bs=16384 count=1 of=$@

#3 Updated by laforge 4 days ago

  • Status changed from New to In Progress
  • Assignee changed from tsaitgaist to laforge

#4 Updated by laforge 4 days ago

  • % Done changed from 0 to 80

#5 Updated by laforge 3 days ago

  • Status changed from In Progress to Resolved
  • % Done changed from 80 to 100

patch was merged (not only for simtrace2 firmware), version-named builds are available from https://ftp.osmocom.org/binaries/simtrace2/firmware/

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)