summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SConscript7
-rw-r--r--SConstruct6
m---------laks0
3 files changed, 10 insertions, 3 deletions
diff --git a/SConscript b/SConscript
new file mode 100644
index 0000000..599e2ba
--- /dev/null
+++ b/SConscript
@@ -0,0 +1,7 @@
+Import('*')
+
+env.SelectMCU(mcu, 'laks')
+
+env.Firmware('demo.elf', Glob('*.cpp'))
+
+# vim: syn=python
diff --git a/SConstruct b/SConstruct
index 574f656..8e7b8b9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -6,7 +6,7 @@ env = Environment(
SConscript('laks/build_rules')
-#env.SelectMCU('stm32f103cb')
-env.SelectMCU('stm32f407zg')
+env.SConscript('SConscript', variant_dir = 'stm32f1', exports = {'env': env.Clone(), 'mcu': 'stm32f103cb'})
+env.SConscript('SConscript', variant_dir = 'stm32f4', exports = {'env': env.Clone(), 'mcu': 'stm32f407zg'})
-env.Firmware('demo.elf', Glob('*.cpp'))
+# vim: syn=python
diff --git a/laks b/laks
-Subproject fca86554077f380c639409331c10a3dd4680d8a
+Subproject 94f53e8caf81e0fbc556dea226d8479963e304a