mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-13 05:19:50 +04:00
fbt: improvements (#3217)
* fbt: changed cdefines & lib handling for external apps; added extra checks for app manifest fields; moved around AppsC generator * fbt: commandline fixes for spaces in paths * fbt: fixed stringification for FAP_VERSION * fbt: Removed excessive quoting for gdb * docs: update for cdefines; fbt: typo fix * fbt: enforcing at least 2 components in app version= Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from SCons.Builder import Builder
|
||||
from SCons.Defaults import Touch
|
||||
from SCons.Action import Action
|
||||
|
||||
|
||||
def generate(env):
|
||||
@@ -9,13 +10,21 @@ def generate(env):
|
||||
"-auto",
|
||||
"-exit",
|
||||
],
|
||||
JFLASHCOM="${JFLASH} -openprj${JFLASHPROJECT} -open${SOURCE},${JFLASHADDR} ${JFLASHFLAGS}",
|
||||
)
|
||||
env.Append(
|
||||
BUILDERS={
|
||||
"JFlash": Builder(
|
||||
action=[
|
||||
"${JFLASHCOM}",
|
||||
Action(
|
||||
[
|
||||
[
|
||||
"${JFLASH}",
|
||||
"-openprj${JFLASHPROJECT}",
|
||||
"-open${SOURCE},${JFLASHADDR}",
|
||||
"${JFLASHFLAGS}",
|
||||
]
|
||||
]
|
||||
),
|
||||
Touch("${TARGET}"),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user