summaryrefslogtreecommitdiff
path: root/build_rules
diff options
context:
space:
mode:
Diffstat (limited to 'build_rules')
-rw-r--r--build_rules5
1 files changed, 3 insertions, 2 deletions
diff --git a/build_rules b/build_rules
index 935e252..42878b7 100644
--- a/build_rules
+++ b/build_rules
@@ -99,8 +99,9 @@ def SelectMCU(env, mcu, variant_dir = None):
AddMethod(Environment, SelectMCU)
-def Firmware(env, target, sources):
- firmware = env.Program(target, [sources, env['LIB_SOURCES']])
+def Firmware(env, target, sources, **kwargs):
+ objects = [env.Object(f) for f in Flatten([sources, env['LIB_SOURCES']])]
+ firmware = env.Program(target, objects, **kwargs)
#env.Depends(firmware, env['LINK_SCRIPT']) # TODO
return firmware