This patch series changes the SeaBIOS build to no longer permit one to provide a custom version string via "make VERSION=xyz". In its place the build will allow extra information to be added to the standard version string via a new "EXTRAVERSION" variable. For example: "make EXTRAVERSION=-coreboot"
In order to facilitate "reproducible" builds, this patch series also changes the build to no longer include the system hostname nor build time on default "clean" builds. Specifically, if git is available, the git repo is not in a "dirty" state, and gcc/binutils versions are successfully extracted, then the default version string will just contain the git version information. However, should any of the preceding tests not succeed, then the version will continue to include the hostname and build time.
-Kevin
Kevin O'Connor (3): build: Rework version generation; don't allow make version override build: Report gcc and binutils versions in debug log build: Generate "reproducible" version strings on "clean" builds
Makefile | 16 ++++---- scripts/buildversion.py | 107 ++++++++++++++++++++++++++++++++++++++++++++++++ scripts/buildversion.sh | 31 -------------- src/output.c | 1 + src/util.h | 2 +- src/version.c | 5 +++ vgasrc/vgainit.c | 1 + vgasrc/vgaversion.c | 6 +++ 8 files changed, 130 insertions(+), 39 deletions(-) create mode 100644 scripts/buildversion.py delete mode 100755 scripts/buildversion.sh create mode 100644 src/version.c create mode 100644 vgasrc/vgaversion.c