mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-30 16:29:12 +00:00
e6f18cc322
* 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>
24 lines
455 B
Python
24 lines
455 B
Python
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
|