summaryrefslogtreecommitdiff
path: root/orbtrace/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'orbtrace/SConscript')
-rw-r--r--orbtrace/SConscript21
1 files changed, 21 insertions, 0 deletions
diff --git a/orbtrace/SConscript b/orbtrace/SConscript
new file mode 100644
index 0000000..b108d18
--- /dev/null
+++ b/orbtrace/SConscript
@@ -0,0 +1,21 @@
+Import('env')
+
+headers = set()
+instances = []
+sources = []
+aliases = {}
+
+periph = env['PLATFORM_SPEC'].get('periph', {})
+
+if 'orbtrace_dbgif' in periph:
+ headers.add('orbtrace_dbgif.h')
+ for name, data in periph['orbtrace_dbgif'].items():
+ instances.append({
+ 'type': 'Orbtrace_DBGIF_t',
+ 'name': name,
+ 'args': [data['offset']],
+ })
+
+env.Jinja2('orbtrace.h', '../templates/periph_instances.h.j2', headers = headers, instances = instances, aliases = aliases)
+
+Return('sources')