no2fpga / no2bootloader

USB DFU bootloader gateware / firmware for FPGAs
Other
58 stars 14 forks source link

firmware: Include version number + board name in filename #2

Closed laf0rge closed 3 years ago

laf0rge commented 3 years ago

Something I learned while working on portable embedded projects in the past: Always make sure the filenames clearly identify which target/board they are built for, and which version they were built from. This can help prevent a number of problems further down the road.

To make this work, at least one signed 'git tag' is required in the repository. File names then are like no2bootloader-ice1usb-0.1-4-g4634574.bin for something built from the fourth commit after the tag '0.1'.

One could further extend this to consider using 'git describe --match' and restrict the match to certain tags in order to differentiate gateware from firmware versions.

Signed-off-by: Harald Welte laforge@gnumonks.org