global: add structure for version stamping.
This commit adds a script, version_stamp.sh which gets executed from external.mk's world target. It uses git describe --broken --dirty and outputs this to the global utilities directory, as version_stamp.

The output file is also added to gitignore, so the result cannot be committed accidentally.

It is up to each board config and scripts to do whatever they wish with this output.
1 parent e393f00 commit 1ccb8c5fb374ba32a117c75f533bbfe9b1b86fe7
@Xogium Xogium authored on 1 Feb 2021
Showing 3 changed files
View
.gitignore
View
external.mk
View
scripts/version_stamp.sh 0 → 100755