genxml: use PYTHON3
authorJonathan Gray <jsg@jsg.id.au>
Sat, 23 Apr 2016 07:42:38 +0000 (17:42 +1000)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 23 Apr 2016 23:45:05 +0000 (16:45 -0700)
Allows the build to work when the python3 binary is not "python3".

v2: remove x bit from the script at Emil's suggestion

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/genxml/Makefile.am
src/intel/genxml/gen_pack_header.py [changed mode: 0755->0644]

index 77b2f193d9fd01f201c5adb6881fed32d02204a7..be3ad4164e920a8fd4649726f09ee2ebd8ea003f 100644 (file)
@@ -26,7 +26,9 @@ BUILT_SOURCES =                                         \
        gen8_pack.h                                     \
        gen9_pack.h
 
+PYTHON3_GEN = $(AM_V_GEN)$(PYTHON3) $(PYTHON_FLAGS)
+
 %_pack.h : %.xml gen_pack_header.py
-       $(AM_V_GEN) $(srcdir)/gen_pack_header.py $< > $@
+       $(PYTHON3_GEN) $(srcdir)/gen_pack_header.py $< > $@
 
 CLEANFILES = $(BUILT_SOURCES)
old mode 100755 (executable)
new mode 100644 (file)