mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-21 12:21:49 +03:00
27 lines
544 B
Python
27 lines
544 B
Python
|
from SCons.Builder import Builder
|
||
|
from SCons.Action import Action
|
||
|
|
||
|
|
||
|
def generate(env):
|
||
|
env.SetDefault(
|
||
|
STRIP="strip",
|
||
|
STRIPFLAGS=[],
|
||
|
STRIPCOM="$STRIP $STRIPFLAGS $SOURCES -o $TARGET",
|
||
|
)
|
||
|
env.Append(
|
||
|
BUILDERS={
|
||
|
"ELFStripper": Builder(
|
||
|
action=Action(
|
||
|
"${STRIPCOM}",
|
||
|
"${STRIPCOMSTR}",
|
||
|
),
|
||
|
suffix=".elf",
|
||
|
src_suffix=".elf",
|
||
|
),
|
||
|
}
|
||
|
)
|
||
|
|
||
|
|
||
|
def exists(env):
|
||
|
return True
|