build: Convert git_sha1_gen script to Python (part2).
authorJose Fonseca <jfonseca@vmware.com>
Tue, 1 Aug 2017 13:36:16 +0000 (14:36 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Tue, 1 Aug 2017 15:33:55 +0000 (16:33 +0100)
Things pointed out by Emil.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/Makefile.am
src/mesa/Android.libmesa_git_sha1.mk

index 8d7483fc75890da36e260af39100b44523294670..e055cb8e701dc49a9c84f9ef5083491b97e07b63 100644 (file)
@@ -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"
index f66f88484bc1d112059bf82bc0b0e0c714b797c0..ddb30c428af739ee9fe507e19bf38a030bff1295 100644 (file)
@@ -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)