fbt: building core
with respect for debug flag (#1347)
* fbt: building `core` with respect for debug flag * fbt: added size output for firmware elf * Infrared: fix cli Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
24
site_scons/site_tools/size.py
Normal file
24
site_scons/site_tools/size.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from SCons.Builder import Builder
|
||||
from SCons.Action import Action
|
||||
|
||||
|
||||
def generate(env):
|
||||
env.SetDefault(
|
||||
SIZE="size",
|
||||
SIZEFLAGS=[],
|
||||
SIZECOM="$SIZE $SIZEFLAGS $TARGETS",
|
||||
)
|
||||
env.Append(
|
||||
BUILDERS={
|
||||
"ELFSize": Builder(
|
||||
action=Action(
|
||||
"${SIZECOM}",
|
||||
"${SIZECOMSTR}",
|
||||
),
|
||||
),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
def exists(env):
|
||||
return True
|
Reference in New Issue
Block a user