aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-compliance/Makefile.am
diff options
context:
space:
mode:
authorHugues Fruchet <hugues.fruchet@st.com>2017-04-27 15:59:23 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2017-04-27 16:04:26 +0200
commit847bf8d62cd6b11defc1e4c3b30b68d3c66876e0 (patch)
tree961edc4e40af4f5740b9b68ab6c03857ae0fbe51 /utils/v4l2-compliance/Makefile.am
parent414da92ef4f1e2a48ce480a4640cf283870456c4 (diff)
v4l2/cec-compliance, cec-follower: use git -C $(srcdir) rev-parse HEAD
Apply git command on source worktree instead of derived objects working directory. This is needed within openembedded build environment. Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/v4l2-compliance/Makefile.am')
-rw-r--r--utils/v4l2-compliance/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/v4l2-compliance/Makefile.am b/utils/v4l2-compliance/Makefile.am
index 18b98923..58bad86c 100644
--- a/utils/v4l2-compliance/Makefile.am
+++ b/utils/v4l2-compliance/Makefile.am
@@ -19,9 +19,9 @@ EXTRA_DIST = Android.mk fixme.txt v4l2-compliance.1
v4l2-compliance.cpp: version.h
version.h:
- @if git rev-parse HEAD >/dev/null 2>&1; then \
+ @if git -C $(srcdir) rev-parse HEAD >/dev/null 2>&1; then \
echo -n "#define SHA " >$@ ; \
- git rev-parse HEAD >>$@ ; \
+ git -C $(srcdir) rev-parse HEAD >>$@ ; \
else \
touch $@ ; \
fi

Privacy Policy