mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
28 lines
620 B
Python
28 lines
620 B
Python
|
from SCons.Builder import Builder
|
||
|
from SCons.Defaults import Touch
|
||
|
|
||
|
|
||
|
def generate(env):
|
||
|
env.SetDefault(
|
||
|
JFLASH="JFlash" if env.subst("$PLATFORM") == "win32" else "JFlashExe",
|
||
|
JFLASHFLAGS=[
|
||
|
"-auto",
|
||
|
"-exit",
|
||
|
],
|
||
|
JFLASHCOM="${JFLASH} -openprj${JFLASHPROJECT} -open${SOURCE},${JFLASHADDR} ${JFLASHFLAGS}",
|
||
|
)
|
||
|
env.Append(
|
||
|
BUILDERS={
|
||
|
"JFlash": Builder(
|
||
|
action=[
|
||
|
"${JFLASHCOM}",
|
||
|
Touch("${TARGET}"),
|
||
|
],
|
||
|
),
|
||
|
}
|
||
|
)
|
||
|
|
||
|
|
||
|
def exists(env):
|
||
|
return True
|