summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2017-08-01 14:36:16 +0100
committerJose Fonseca <[email protected]>2017-08-01 16:33:55 +0100
commitd4b44783906d3dd37903525dd187c53f4bd26918 (patch)
tree8f93c157a34dc83f3587b83e8e632f789cebcca5
parent39608761cd20cbabb975a5d899dfe7c0dd3268b7 (diff)
build: Convert git_sha1_gen script to Python (part2).
Things pointed out by Emil. Reviewed-by: Emil Velikov <[email protected]>
-rw-r--r--src/Makefile.am2
-rw-r--r--src/mesa/Android.libmesa_git_sha1.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 8d7483fc758..e055cb8e701 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -21,7 +21,7 @@
.PHONY: git_sha1.h.tmp
git_sha1.h.tmp:
- @python $(top_srcdir)/bin/git_sha1_gen.py > $@
+ @$(PYTHON2) $(top_srcdir)/bin/git_sha1_gen.py > $@
git_sha1.h: git_sha1.h.tmp
@echo "updating git_sha1.h"
diff --git a/src/mesa/Android.libmesa_git_sha1.mk b/src/mesa/Android.libmesa_git_sha1.mk
index f66f88484bc..ddb30c428af 100644
--- a/src/mesa/Android.libmesa_git_sha1.mk
+++ b/src/mesa/Android.libmesa_git_sha1.mk
@@ -46,7 +46,7 @@ LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, git_sha1.h)
$(intermediates)/git_sha1.h: $(wildcard $(MESA_TOP)/.git/logs/HEAD)
@mkdir -p $(dir $@)
@echo "GIT-SHA1: $(PRIVATE_MODULE) <= git"
- $(hide) python $(MESA_TOP)/bin/git_sha1_gen.py > $@
+ $(hide) $(MESA_PYTHON2) $(MESA_TOP)/bin/git_sha1_gen.py > $@
LOCAL_EXPORT_C_INCLUDE_DIRS := $(intermediates)