Browse files

[Makefile] squash build error message when git is not available

Typical example is when building a tarball, error message "/bin/sh: 1:
git: not found" is seen. we can just dump that message.

Reported-by: Robert C Nelson <>
Signed-off-by: Nishanth Menon <>
  • Loading branch information...
1 parent 48d17cd commit 4075c78d7611a41e0bd98797fba7223ff17af4fc @nmenon nmenon committed Aug 28, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 Makefile
2 Makefile
@@ -402,7 +402,7 @@ builddate.c: $(ALLOBJECTS)
@echo 'char *builddate="'`date`'";' > builddate.c
version.c: $(ALLOBJECTS)
- @echo 'char *omapconf_version="'`git describe --dirty||echo "$(VERSION_MAJOR).$(VERSION_MINOR)-nogit"`'";' > version.c
+ @echo 'char *omapconf_version="'`git describe --dirty 2>/dev/null||echo "$(VERSION_MAJOR).$(VERSION_MINOR)-nogit"`'";' > version.c

0 comments on commit 4075c78

Please sign in to comment.