summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SConscript2
-rw-r--r--build_rules6
2 files changed, 6 insertions, 2 deletions
diff --git a/SConscript b/SConscript
index 5d706af..bc20764 100644
--- a/SConscript
+++ b/SConscript
@@ -5,3 +5,5 @@ Import('env')
env.Append(
LIB_SOURCES = Glob('*.cpp') + Glob('*/*.cpp'),
)
+
+# vim: syn=python
diff --git a/build_rules b/build_rules
index 225d86a..3fa0f91 100644
--- a/build_rules
+++ b/build_rules
@@ -58,7 +58,7 @@ def select_stm32(env, variant):
print 'Unknown stm32 family: %s' % mcu
Exit(1)
-def SelectMCU(env, mcu):
+def SelectMCU(env, mcu, variant_dir = None):
mcu = mcu.lower()
if mcu.startswith('stm32'):
@@ -68,7 +68,7 @@ def SelectMCU(env, mcu):
print 'Unknown MCU: %s' % mcu
Exit(1)
- SConscript(main_sconscript, exports = 'env')
+ SConscript(main_sconscript, variant_dir = variant_dir, exports = 'env')
AddMethod(Environment, SelectMCU)
@@ -78,3 +78,5 @@ def Firmware(env, target, sources):
return firmware
AddMethod(Environment, Firmware)
+
+# vim: syn=python