1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 22:43:17 +02:00

fixup! Convert flashrom to git

- make version string generation independent of the actual VCS
   used by not generating "unknown" in the makefile but letting
   getrevision do that
 - make hook installation independent of version string generation
   since they have nothing to do with each other and there are no
   synergies anymore

Change-Id: Iedc9df4c033a70447b8b1b65c83764c769b02c3f
Signed-off-by: Stefan Tauner <stefan.tauner@gmx.at>
Reviewed-on: https://review.coreboot.org/21827
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Stefan Tauner
2017-10-01 16:41:35 +02:00
committed by Nico Huber
parent 2dc5d29400
commit 9620912607
2 changed files with 8 additions and 11 deletions

View File

@ -131,13 +131,14 @@ timestamp() {
# Retrieve local revision info.
local_revision() {
local r
if git_is_file_tracked "$1" ; then
local r=$(git describe $(git_last_commit "$1"))
r=$(git describe $(git_last_commit "$1"))
if git_has_local_changes "$1" ; then
r="$r-dirty"
fi
else
return ${EXIT_FAILURE}
r="unknown"
fi
echo "${r}"