From 94f53e8caf81e0fbc556dea226d8479963e304a8 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 13 Oct 2012 17:25:59 +0200 Subject: Allow specifying variant_dir to SelectMCU. --- build_rules | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build_rules') 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 -- cgit v1.2.3