mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 06:50:21 +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
|