summaryrefslogtreecommitdiff
path: root/build/scons_tools/tool_firmware.py
blob: c7e8f3455e22d47f63b482d9f628fc6d8e6d6325 (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, '${LAKS_PATH}/ld_scripts/${LINK_SCRIPT}')
	return firmware

def exists():
    return True

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