From a5e2d9e5baf869ae961fbb5820447290d6d9c7c8 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 26 Apr 2011 21:55:48 -0700 Subject: volk: reorganization of generation sources and generated files All generation sources have been moved to the gen/ subdirectory. Bootstrap and volk_register.py generate the files into to gen/ subdirectory in an effort to cleanly separate the static/generated parts of the build tree. Define top_gendir in Makefile.common, all generated sources listed in Makefile.ams are prefixed with $(top_gendir) to differentiate them from static in-tree sources. --- volk/gen/make_config_fixed.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 volk/gen/make_config_fixed.py (limited to 'volk/gen/make_config_fixed.py') diff --git a/volk/gen/make_config_fixed.py b/volk/gen/make_config_fixed.py new file mode 100644 index 000000000..3fd1bdf0a --- /dev/null +++ b/volk/gen/make_config_fixed.py @@ -0,0 +1,21 @@ +from xml.dom import minidom + +def make_config_fixed(dom) : + tempstring = ""; + tempstring = tempstring +'/*this file is auto generated by volk_register.py*/'; + tempstring = tempstring + '\n#ifndef INCLUDED_VOLK_CONFIG_FIXED_H'; + tempstring = tempstring + '\n#define INCLUDED_VOLK_CONFIG_FIXED_H'; + tempstring = tempstring + '\n\n'; + enum_counter = 0; + for domarch in dom: + arch = str(domarch.attributes["name"].value); + tempstring = tempstring + '#define LV_' + arch.swapcase() + " " + str(enum_counter) + '\n'; + enum_counter = enum_counter + 1; + tempstring = tempstring + '\n\n'; + + tempstring = tempstring + "#endif /*INCLUDED_VOLK_CONFIG_FIXED*/\n" + + return tempstring; + + + -- cgit