summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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