Fix ElfToHex builder for microchippic32

This commit is contained in:
Valeriy Koval
2016-07-22 16:43:02 +03:00
parent f16c05c429
commit a1d9bc7cee

View File

@ -92,6 +92,7 @@ env.Replace(
if int(env.get("BOARD_OPTIONS", {}).get(
"upload", {}).get("maximum_ram_size", 0)) < 65535:
env.Append(
ASFLAGS=["-G1024"],
CCFLAGS=["-G1024"]
)
@ -115,15 +116,7 @@ env.Append(
),
ElfToHex=Builder(
action=" ".join([
"$OBJCOPY",
"-O",
"ihex",
"-R",
".eeprom",
"$SOURCES",
"$TARGET"]),
suffix=".hex"
action=" ".join(["pic32-bin2hex", "-a", "$SOURCES"]), suffix=".hex"
)
)
)
@ -161,7 +154,7 @@ env.Append(
if "uploadlazy" in COMMAND_LINE_TARGETS:
target_firm = join("$BUILD_DIR", "firmware.hex")
else:
target_firm = env.ElfToHex(join("$BUILD_DIR", "firmware"), target_elf)
target_firm = env.ElfToHex(target_elf)
#
# Target: Print binary size