summaryrefslogtreecommitdiffstats
path: root/src/intel/genxml
diff options
context:
space:
mode:
authorJonathan Gray <[email protected]>2016-04-23 17:42:38 +1000
committerKenneth Graunke <[email protected]>2016-04-23 16:45:05 -0700
commit147a2d25adcfc3af96d3a7182ce6d367fffb9522 (patch)
treed3eabaabb21682619dadad32659ebed17aeb2ea1 /src/intel/genxml
parent710b1d2e665ed654fb8d52b146fa22469e1dc3a7 (diff)
genxml: use PYTHON3
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 <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/genxml')
-rw-r--r--src/intel/genxml/Makefile.am4
-rw-r--r--[-rwxr-xr-x]src/intel/genxml/gen_pack_header.py0
2 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/genxml/Makefile.am b/src/intel/genxml/Makefile.am
index 77b2f193d9f..be3ad4164e9 100644
--- a/src/intel/genxml/Makefile.am
+++ b/src/intel/genxml/Makefile.am
@@ -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)
diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py
index 9ef7122ae9e..9ef7122ae9e 100755..100644
--- a/src/intel/genxml/gen_pack_header.py
+++ b/src/intel/genxml/gen_pack_header.py