summaryrefslogtreecommitdiff
path: root/build_rules
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2013-10-11 21:13:34 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2013-10-11 21:15:48 +0200
commitb15cd5bea52bad5a48dc46f0efca40575e6cb0a5 (patch)
treefa66cc5bb5fddab57ac7d71b0608ec3891308681 /build_rules
parentef34f43a98f03e11c08819dfaa77b8f7f5705b2e (diff)
Make Firmware builder take linker arguments.
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