android: intel: genxml: fix genX_xml.h generation rules
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 1 Apr 2017 10:50:33 +0000 (12:50 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 4 Apr 2017 06:10:46 +0000 (09:10 +0300)
Recent changes in Makefile.sources merged the aubinator files in
a unique list of generated files and genxml/genX_xml.h is now needed
to avoid the following building error:

ninja: error: '.../genxml/genX_xml.h', needed by '.../genxml/genX_xml.h',
missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed

Fixes: 0f83c05 "intel: genxml: compress all gen files into one"
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/Android.genxml.mk

index 842d0e13a33704596d61bcae8e10deb272f119c3..4b0746c245bd77e7d1d93ed9b46790f7ee147280 100644 (file)
@@ -96,6 +96,11 @@ $(intermediates)/genxml/gen9_pack.h: PRIVATE_XML := $(LOCAL_PATH)/genxml/gen9.xm
 $(intermediates)/genxml/gen9_pack.h: $(LOCAL_PATH)/genxml/gen9.xml $(LOCAL_PATH)/genxml/gen_pack_header.py
        $(call header-gen)
 
+$(intermediates)/genxml/genX_xml.h: $(addprefix $(MESA_TOP)/src/intel/,$(GENXML_XML_FILES)) $(MESA_TOP)/src/intel/genxml/gen_zipped_file.py
+       @mkdir -p $(dir $@)
+       @echo "Gen Header: $(PRIVATE_MODULE) <= $(notdir $(@))"
+       $(hide) $(MESA_PYTHON2) $(MESA_TOP)/src/intel/genxml/gen_zipped_file.py $(addprefix $(MESA_TOP)/src/intel/,$(GENXML_XML_FILES)) > $@ || (rm -f $@; false)
+
 LOCAL_EXPORT_C_INCLUDE_DIRS := \
        $(MESA_TOP)/src/intel \
        $(intermediates)