<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">>>> > MESA_COMMON_MK := $(MESA_TOP)/<a href="http://Android.common.mk" rel="noreferrer" target="_blank">Android.common.mk</a><br>
>>> > MESA_PYTHON2 := python<br>
>>> > +MESA_PYTHON3 := python3<br>
>><br>>> I've just seen that while a few days ago python3 was necessary to build<br>
>> gen%_pack.h headers,<br>
>> now the .py scripts just require python2, so this MESA_PYTHON3 definition<br>
>> is not needed anymore.<br>
>><br>
>>><br>
>>> > new file mode 100644<br>
>>> > index 0000000..e0137d5<br>
>>> > --- /dev/null<br>
>>> > +++ b/src/intel/genxml/Android.mk<br>
>>> > @@ -0,0 +1,82 @@<br>
>>> > +# Copyright © 2016 Intel Corporation<br>
>>> > +# Copyright © 2016 Mauro Rossi <<a href="mailto:issor.oruam@gmail.com">issor.oruam@gmail.com</a>><br>
>>> > +#<br>
>>> > +# Permission is hereby granted, free of charge, to any person<br>
>>> > obtaining a<br>
>>> > +# copy of this software and associated documentation files (the<br>
>>> > "Software"),<br>
>>> > +# to deal in the Software without restriction, including without<br>
>>> > limitation<br>
>>> > +# the rights to use, copy, modify, merge, publish, distribute,<br>
>>> > sublicense,<br>
>>> > +# and/or sell copies of the Software, and to permit persons to whom<br>
>>> > the<br>
>>> > +# Software is furnished to do so, subject to the following conditions:<br>
>>> > +#<br>
>>> > +# The above copyright notice and this permission notice shall be<br>
>>> > included<br>
>>> > +# in all copies or substantial portions of the Software.<br>
>>> > +#<br>
>>> > +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,<br>
>>> > EXPRESS OR<br>
>>> > +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF<br>
>>> > MERCHANTABILITY,<br>
>>> > +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT<br>
>>> > SHALL<br>
>>> > +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR<br>
>>> > OTHER<br>
>>> > +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,<br>
>>> > ARISING<br>
>>> > +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER<br>
>>> > +# DEALINGS IN THE SOFTWARE.<br>
>>> > +<br>
>>> > +LOCAL_PATH := $(call my-dir)<br>
>>> > +<br>
>>> > +# Import variable GENERATED_FILES.<br>
>>> > +include $(LOCAL_PATH)/Makefile.sources<br>
>>> > +<br>
>>> > +include $(CLEAR_VARS)<br>
>>> > +<br>
>>> > +LOCAL_MODULE := libmesa_genxml<br>
>>> > +<br>
>>> > +LOCAL_MODULE_CLASS := STATIC_LIBRARIES<br>
>>> > +<br>
>>> > +intermediates := $(call local-generated-sources-dir)<br>
>>> > +<br>
>>> > +# dummy.c source file is generated to meet the build system's rules.<br>
>>> > +LOCAL_GENERATED_SOURCES += $(intermediates)/dummy.c<br>
>>> > +<br>
>>> > +$(intermediates)/dummy.c:<br>
>>> > + @mkdir -p $(dir $@)<br>
>>> > + @echo "Gen Dummy: $(PRIVATE_MODULE) <= $(notdir $(@))"<br>
>>> > + $(hide) touch $@<br>
>>> > +<br>
>>> > +# This is the list of auto-generated files headers<br>
>>> > +LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/genxml/,<br>
>>> > $(GENXML_GENERATED_FILES))<br>
>>> > +<br>
>>> > +define header-gen<br>
>>> > + @mkdir -p $(dir $@)<br>
>>> > + @echo "Gen Header: $(PRIVATE_MODULE) <= $(notdir $(@))"<br>
>>> > + $(hide) $(PRIVATE_SCRIPT) $(PRIVATE_XML) > $@<br>
>>> > +endef<br>
>>> > +<br>
>>> > +$(intermediates)/genxml/gen6_pack.h: PRIVATE_SCRIPT := $(MESA_PYTHON3)<br>
>>> > $(LOCAL_PATH)/gen_pack_header.py<br>
>>> > +$(intermediates)/genxml/gen6_pack.h: PRIVATE_XML :=<br>
>>> > $(LOCAL_PATH)/gen6.xml<br>
>>> > +$(intermediates)/genxml/gen6_pack.h: $(LOCAL_PATH)/gen6.xml<br>
>>> > $(LOCAL_PATH)/gen_pack_header.py<br>
>>> > + $(call header-gen)<br>
>>> > +<br>
>>> > +$(intermediates)/genxml/gen7_pack.h: PRIVATE_SCRIPT := $(MESA_PYTHON3)<br>
>>> > $(LOCAL_PATH)/gen_pack_header.py<br>
>>> > +$(intermediates)/genxml/gen7_pack.h: PRIVATE_XML :=<br>
>>> > $(LOCAL_PATH)/gen7.xml<br>
>>> > +$(intermediates)/genxml/gen7_pack.h: $(LOCAL_PATH)/gen7.xml<br>
>>> > $(LOCAL_PATH)/gen_pack_header.py<br>
>>> > + $(call header-gen)<br>
>>> > +<br>
>>> > +$(intermediates)/genxml/gen75_pack.h: PRIVATE_SCRIPT :=<br>
>>> > $(MESA_PYTHON3) $(LOCAL_PATH)/gen_pack_header.py<br>
>>> > +$(intermediates)/genxml/gen75_pack.h: PRIVATE_XML :=<br>
>>> > $(LOCAL_PATH)/gen75.xml<br>
>>> > +$(intermediates)/genxml/gen75_pack.h: $(LOCAL_PATH)/gen75.xml<br>
>>> > $(LOCAL_PATH)/gen_pack_header.py<br>
>>> > + $(call header-gen)<br>
>>> > +<br>
>>> > +$(intermediates)/genxml/gen8_pack.h: PRIVATE_SCRIPT := $(MESA_PYTHON3)<br>
>>> > $(LOCAL_PATH)/gen_pack_header.py<br>
>>> > +$(intermediates)/genxml/gen8_pack.h: PRIVATE_XML :=<br>
>>> > $(LOCAL_PATH)/gen8.xml<br>
>>> > +$(intermediates)/genxml/gen8_pack.h: $(LOCAL_PATH)/gen8.xml<br>
>>> > $(LOCAL_PATH)/gen_pack_header.py<br>
>>> > + $(call header-gen)<br>
>>> > +<br>
>>> > +$(intermediates)/genxml/gen9_pack.h: PRIVATE_SCRIPT := $(MESA_PYTHON3)<br>
>>> > $(LOCAL_PATH)/gen_pack_header.py<br>
>>> > +$(intermediates)/genxml/gen9_pack.h: PRIVATE_XML :=<br>
>>> > $(LOCAL_PATH)/gen9.xml<br>
>>> > +$(intermediates)/genxml/gen9_pack.h: $(LOCAL_PATH)/gen9.xml<br>
>>> > $(LOCAL_PATH)/gen_pack_header.py<br>
>>> > + $(call header-gen)<br>
>><br>
>><br>
> ...and these PRIVATE SCRIPTS will use use $(MESA_PYTHON) as $(MESA_PYTHON3)<br>
> not needed anymore<br>
><br>
</div></div>Indeed. Care to respin the patch with the python/don't filter-out<br>
changes in mind ?<br>
Barring any objections I will be pushing the Makefile.sources<br>
change(s) in a few hours.<br>
<br>
Thanks<br>
Emil<br></blockquote><div><br></div><div>Hi Emil, please proceed, I was about to propose the same way. </div><div><br></div><div>I will send the final patch after having tested build completion this evening.<br></div><div><br></div><div>As reminder it is to be applied on both mesa 12.0.0rc1 and master</div><div><br></div><div>Mauro</div></div></div></div>