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.
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