diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-10-13 21:00:33 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-10-13 21:01:54 +0200 |
commit | 3c3654210d7b8a7402de55726617ba3dc6ff456a (patch) | |
tree | fdae0a2ddff0c1455480ee914f2818eb8057139c | |
parent | a4d31776b23a8517a7493390ab82a714a211f7f7 (diff) |
Multivariant example.multivariant
-rw-r--r-- | SConscript | 7 | ||||
-rw-r--r-- | SConstruct | 6 | ||||
m--------- | laks | 0 |
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
@@ -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 |