summaryrefslogtreecommitdiff
path: root/build/scons_tools/tool_firmware.py
blob: b1ead1f3534f0135f5709e742e68e46d1d778d9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from SCons.Script import *

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

def exists():
    return True

def generate(env):
    env.AddMethod(Firmware)