From: Jonathan Gray Date: Sat, 23 Apr 2016 07:42:38 +0000 (+1000) Subject: genxml: use PYTHON3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=147a2d25adcfc3af96d3a7182ce6d367fffb9522;p=mesa.git 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 Reviewed-by: Emil Velikov Reviewed-by: Jason Ekstrand Reviewed-by: Kenneth Graunke --- 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 old mode 100755 new mode 100644