mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 21:13:16 +00:00
27 lines
558 B
Python
27 lines
558 B
Python
|
from SCons.Builder import Builder
|
||
|
from SCons.Action import Action
|
||
|
|
||
|
|
||
|
def generate(env):
|
||
|
env.SetDefault(
|
||
|
OBJDUMP="objdump",
|
||
|
OBJDUMPFLAGS=[],
|
||
|
OBJDUMPCOM="$OBJDUMP $OBJDUMPFLAGS -S $SOURCES > $TARGET",
|
||
|
)
|
||
|
env.Append(
|
||
|
BUILDERS={
|
||
|
"ObjDump": Builder(
|
||
|
action=Action(
|
||
|
"${OBJDUMPCOM}",
|
||
|
"${OBJDUMPCOMSTR}",
|
||
|
),
|
||
|
suffix=".lst",
|
||
|
src_suffix=".elf",
|
||
|
),
|
||
|
}
|
||
|
)
|
||
|
|
||
|
|
||
|
def exists(env):
|
||
|
return True
|