summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-10-13 21:00:33 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-10-13 21:01:54 +0200
commit3c3654210d7b8a7402de55726617ba3dc6ff456a (patch)
treefdae0a2ddff0c1455480ee914f2818eb8057139c
parenta4d31776b23a8517a7493390ab82a714a211f7f7 (diff)
Multivariant example.multivariant
-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