summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gardner <gardner.ben@gmail.com>2016-01-20 10:17:38 -0600
committerMartin Roth <martinroth@google.com>2016-01-21 16:42:23 +0100
commit48c232c1dab2f56dae19d1054602ecccae5ccf30 (patch)
treef8cddf88046dbff55174327c87afcf6f4cd2fbac
parentbdaa1b5a722d34417b074263a5e434b0c1c6cbc7 (diff)
downloadcoreboot-48c232c1dab2f56dae19d1054602ecccae5ccf30.tar.xz
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 <gardner.ben@gmail.com> Reviewed-on: https://review.coreboot.org/13061 Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins)
-rw-r--r--Makefile.inc2
1 files changed, 1 insertions, 1 deletions
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