summaryrefslogtreecommitdiff
path: root/build_rules
diff options
context:
space:
mode:
Diffstat (limited to 'build_rules')
-rw-r--r--build_rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/build_rules b/build_rules
index 935e252..0cf1fc4 100644
--- a/build_rules
+++ b/build_rules
@@ -85,12 +85,21 @@ def select_stm32(env, variant):
print 'Unknown stm32 family: %s' % family
Exit(1)
+def select_qemu(env, variant):
+ select_arm(env, 'cortex-m3')
+ env.Append(CPPDEFINES = ['QEMU'])
+
+ env['LINK_SCRIPT'] = 'qemu.ld'
+
def SelectMCU(env, mcu, variant_dir = None):
mcu = mcu.lower()
if mcu.startswith('stm32'):
select_stm32(env, mcu)
+ elif mcu.startswith('qemu'):
+ select_qemu(env, mcu)
+
else:
print 'Unknown MCU: %s' % mcu
Exit(1)