From 48c232c1dab2f56dae19d1054602ecccae5ccf30 Mon Sep 17 00:00:00 2001 From: Ben Gardner Date: Wed, 20 Jan 2016 10:17:38 -0600 Subject: [PATCH] Makefile.inc: 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. Without this change, build.h will contain: #define COREBOOT_VERSION "coreboot-unknown" Change-Id: Ia141371cc892a0817d3566dc37ed0401675ad8d8 Signed-off-by: Ben Gardner Reviewed-on: https://review.coreboot.org/13061 Reviewed-by: Martin Roth Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index 23cc079359..3757d99ea7 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -13,7 +13,7 @@ ## GNU General Public License for more details. ## -GIT:=$(shell [ -d "$(top)/.git" ] && command -v git) +GIT:=$(shell [ -e "$(top)/.git" ] && command -v git) ####################################################################### # normalize Kconfig variables in a central place