From 3278cd7610588d28a895c2e2ca86aeaa39df9a1e Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 10 Mar 2017 16:14:43 +0000 Subject: aubinator/genxml: use gzipped files to store embedded genxml This reduces the size of the aubinator binary from ~1.4Mb to ~700Kb. With can now drop the checks on xxd in configure. v2: Fix incorrect makefile dependency (Lionel) v3: use $(PYTHON2) (Emil) Signed-off-by: Lionel Landwerlin Reviewed-by: Emil Velikov --- src/intel/Makefile.genxml.am | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/intel/Makefile.genxml.am') diff --git a/src/intel/Makefile.genxml.am b/src/intel/Makefile.genxml.am index 1866d7e2df1..bea0aab817f 100644 --- a/src/intel/Makefile.genxml.am +++ b/src/intel/Makefile.genxml.am @@ -35,18 +35,11 @@ $(GENXML_GENERATED_FILES): genxml/gen_pack_header.py $(MKDIR_GEN) $(PYTHON_GEN) $(srcdir)/genxml/gen_pack_header.py $< > $@ || ($(RM) $@; false) -# xxd generates variable names based on the path of the input file. We -# prefer to generate our own name here, so it doesn't vary from -# in/out-of-tree builds. - -$(GENXML_GENERATED_FILES): Makefile.am +$(GENXML_GENERATED_FILES): genxml/gen_zipped_file.py .xml_xml.h: $(MKDIR_GEN) - $(AM_V_GEN) echo -n "static const uint8_t " > $@; \ - echo "$(@F)_xml[] = {" | sed -e 's,_xml.h,,' >> $@; \ - cat $< | $(XXD) -i >> $@; \ - echo "};" >> $@ + $(AM_V_GEN) $(PYTHON2) $(srcdir)/genxml/gen_zipped_file.py $< > $@ || ($(RM) $@; false) EXTRA_DIST += \ genxml/gen4.xml \ -- cgit v1.2.3