summaryrefslogtreecommitdiffstats
path: root/src/intel/Makefile.genxml.am
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2017-03-10 16:14:43 +0000
committerLionel Landwerlin <[email protected]>2017-03-13 13:36:31 +0000
commit3278cd7610588d28a895c2e2ca86aeaa39df9a1e (patch)
treeb7c6da1f5becb080a9204b70e219e0e16bb46324 /src/intel/Makefile.genxml.am
parent351c951e095db47c7cf91b77838d2a7333d775a8 (diff)
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 <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/intel/Makefile.genxml.am')
-rw-r--r--src/intel/Makefile.genxml.am11
1 files changed, 2 insertions, 9 deletions
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 \