mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Use esptool as OBJCOPY for ElfToBin builder // Resolve #426
This commit is contained in:
@ -51,7 +51,7 @@ env.Replace(
|
||||
AS="xtensa-lx106-elf-as",
|
||||
CC="xtensa-lx106-elf-gcc",
|
||||
CXX="xtensa-lx106-elf-g++",
|
||||
OBJCOPY="xtensa-lx106-elf-objcopy",
|
||||
OBJCOPY=join("$PIOPACKAGES_DIR", "tool-esptool", "esptool"),
|
||||
RANLIB="xtensa-lx106-elf-ranlib",
|
||||
SIZETOOL="xtensa-lx106-elf-size",
|
||||
|
||||
@ -137,7 +137,7 @@ env.Append(
|
||||
BUILDERS=dict(
|
||||
ElfToBin=Builder(
|
||||
action=" ".join([
|
||||
'"$UPLOADER"',
|
||||
'"$OBJCOPY"',
|
||||
"-eo",
|
||||
'"%s"' % join("$PLATFORMFW_DIR", "bootloaders",
|
||||
"eboot", "eboot.elf"),
|
||||
@ -248,7 +248,7 @@ else:
|
||||
BUILDERS=dict(
|
||||
ElfToBin=Builder(
|
||||
action=" ".join([
|
||||
'"$UPLOADER"',
|
||||
'"$OBJCOPY"',
|
||||
"-eo", "$SOURCES",
|
||||
"-bo", "${TARGETS[0]}",
|
||||
"-bm", "qio",
|
||||
|
Reference in New Issue
Block a user