other platforms should export CUSTOM_STR in their
platform/<target>/Makefile.am

Signed-off-by: Anders Roxell <anders.rox...@linaro.org>
---
 scripts/git_hash.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/git_hash.sh b/scripts/git_hash.sh
index 48ae24e..6cfec2f 100755
--- a/scripts/git_hash.sh
+++ b/scripts/git_hash.sh
@@ -6,14 +6,14 @@ if [ -z ${1} ]; then
 fi
 ROOTDIR=${1}
 
-repo=https://git.linaro.org/lng/odp.git
+CUSTOM_STR=${CUSTOM_STR:-https://git.linaro.org/lng/odp.git}
 if [ -d ${ROOTDIR}/.git ]; then
        hash=$(git describe | tr -d "\n")
        if git diff-index --name-only HEAD &>/dev/null ; then
                dirty=-dirty
        fi
 
-       echo -n "'${repo}' (${hash}${dirty})">${ROOTDIR}/.scmversion
+       echo -n "'${CUSTOM_STR}' (${hash}${dirty})">${ROOTDIR}/.scmversion
 fi
 
 cat ${ROOTDIR}/.scmversion
-- 
2.1.4

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to