genbuild_h.sh: allow coreboot to be a git submodule
When coreboot is pulled in as a submodule, the .git "folder" is a file, not a folder. Use the '-e' test instead of '-d' to allow for that. Change-Id: I0dd8866b0016f7ba099cdaf4d7db442ff22612b5 Signed-off-by: Ben Gardner <gardner.ben@gmail.com> Reviewed-on: https://review.coreboot.org/12819 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
bb85f9eb73
commit
2ab652f606
|
@ -24,7 +24,7 @@ export TZ=UTC
|
|||
|
||||
top=`dirname $0`/../..
|
||||
|
||||
if [ -d "${top}/.git" -a -x "$(command -v git)" ]; then
|
||||
if [ -e "${top}/.git" -a -x "$(command -v git)" ]; then
|
||||
GITREV=$(LANG= git log -1 --format=format:%h)
|
||||
TIMESOURCE=git
|
||||
DATE=$(git log --pretty=format:%ct -1)
|
||||
|
|
Loading…
Reference in New Issue