scripts: esp32.py: Do not convert ELF to bin
ELF to binary generation is handled by build system Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
This commit is contained in:
parent
2ab585fd2e
commit
2caaacc191
1 changed files with 1 additions and 5 deletions
|
@ -1,4 +1,5 @@
|
|||
# Copyright (c) 2017 Linaro Limited.
|
||||
# Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
|
@ -80,7 +81,6 @@ class Esp32BinaryRunner(ZephyrBinaryRunner):
|
|||
def do_run(self, command, **kwargs):
|
||||
self.require(self.espidf)
|
||||
bin_name = path.splitext(self.elf)[0] + path.extsep + 'bin'
|
||||
cmd_convert = [self.espidf, '--chip', 'esp32', 'elf2image', self.elf]
|
||||
cmd_flash = [self.espidf, '--chip', 'esp32', '--port', self.device,
|
||||
'--baud', self.baud, '--before', 'default_reset',
|
||||
'--after', 'hard_reset', 'write_flash', '-u',
|
||||
|
@ -90,7 +90,6 @@ class Esp32BinaryRunner(ZephyrBinaryRunner):
|
|||
|
||||
# Execute Python interpreter if calling a Python script
|
||||
if self.espidf.lower().endswith(".py") and sys.executable:
|
||||
cmd_convert.insert(0, sys.executable)
|
||||
cmd_flash.insert(0, sys.executable)
|
||||
|
||||
if self.bootloader_bin:
|
||||
|
@ -100,9 +99,6 @@ class Esp32BinaryRunner(ZephyrBinaryRunner):
|
|||
else:
|
||||
cmd_flash.extend(['0x1000', bin_name])
|
||||
|
||||
self.logger.info("Converting ELF to BIN")
|
||||
self.check_call(cmd_convert)
|
||||
|
||||
self.logger.info("Flashing ESP32 on {} ({}bps)".
|
||||
format(self.device, self.baud))
|
||||
self.check_call(cmd_flash)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue