mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-22 21:01:40 +03: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
|