mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-04 03:52:01 +02:00
Rename Kconfig options (components/esptool_py)
This commit is contained in:
@@ -54,20 +54,20 @@ menu "Serial flasher config"
|
||||
decompress it on the fly before flashing it. For most payloads, this should result in a
|
||||
speed increase.
|
||||
|
||||
choice FLASHMODE
|
||||
choice ESPTOOLPY_FLASHMODE
|
||||
prompt "Flash SPI mode"
|
||||
default FLASHMODE_DIO
|
||||
default ESPTOOLPY_FLASHMODE_DIO
|
||||
help
|
||||
Mode the flash chip is flashed in, as well as the default mode for the
|
||||
binary to run in.
|
||||
|
||||
config FLASHMODE_QIO
|
||||
config ESPTOOLPY_FLASHMODE_QIO
|
||||
bool "QIO"
|
||||
config FLASHMODE_QOUT
|
||||
config ESPTOOLPY_FLASHMODE_QOUT
|
||||
bool "QOUT"
|
||||
config FLASHMODE_DIO
|
||||
config ESPTOOLPY_FLASHMODE_DIO
|
||||
bool "DIO"
|
||||
config FLASHMODE_DOUT
|
||||
config ESPTOOLPY_FLASHMODE_DOUT
|
||||
bool "DOUT"
|
||||
endchoice
|
||||
|
||||
@@ -76,10 +76,10 @@ menu "Serial flasher config"
|
||||
# itself to quad mode during initialisation
|
||||
config ESPTOOLPY_FLASHMODE
|
||||
string
|
||||
default "dio" if FLASHMODE_QIO
|
||||
default "dio" if FLASHMODE_QOUT
|
||||
default "dio" if FLASHMODE_DIO
|
||||
default "dout" if FLASHMODE_DOUT
|
||||
default "dio" if ESPTOOLPY_FLASHMODE_QIO
|
||||
default "dio" if ESPTOOLPY_FLASHMODE_QOUT
|
||||
default "dio" if ESPTOOLPY_FLASHMODE_DIO
|
||||
default "dout" if ESPTOOLPY_FLASHMODE_DOUT
|
||||
|
||||
choice ESPTOOLPY_FLASHFREQ
|
||||
prompt "Flash SPI speed"
|
||||
@@ -180,44 +180,44 @@ menu "Serial flasher config"
|
||||
default "hard_reset" if ESPTOOLPY_AFTER_RESET
|
||||
default "no_reset" if ESPTOOLPY_AFTER_NORESET
|
||||
|
||||
choice MONITOR_BAUD
|
||||
choice ESPTOOLPY_MONITOR_BAUD
|
||||
prompt "'make monitor' baud rate"
|
||||
default MONITOR_BAUD_115200B
|
||||
default ESPTOOLPY_MONITOR_BAUD_115200B
|
||||
help
|
||||
Baud rate to use when running 'make monitor' to view serial output
|
||||
from a running chip.
|
||||
|
||||
Can override by setting the MONITORBAUD environment variable.
|
||||
|
||||
config MONITOR_BAUD_9600B
|
||||
config ESPTOOLPY_MONITOR_BAUD_9600B
|
||||
bool "9600 bps"
|
||||
config MONITOR_BAUD_57600B
|
||||
config ESPTOOLPY_MONITOR_BAUD_57600B
|
||||
bool "57600 bps"
|
||||
config MONITOR_BAUD_115200B
|
||||
config ESPTOOLPY_MONITOR_BAUD_115200B
|
||||
bool "115200 bps"
|
||||
config MONITOR_BAUD_230400B
|
||||
config ESPTOOLPY_MONITOR_BAUD_230400B
|
||||
bool "230400 bps"
|
||||
config MONITOR_BAUD_921600B
|
||||
config ESPTOOLPY_MONITOR_BAUD_921600B
|
||||
bool "921600 bps"
|
||||
config MONITOR_BAUD_2MB
|
||||
config ESPTOOLPY_MONITOR_BAUD_2MB
|
||||
bool "2 Mbps"
|
||||
config MONITOR_BAUD_OTHER
|
||||
config ESPTOOLPY_MONITOR_BAUD_OTHER
|
||||
bool "Custom baud rate"
|
||||
|
||||
endchoice
|
||||
|
||||
config MONITOR_BAUD_OTHER_VAL
|
||||
int "Custom baud rate value" if MONITOR_BAUD_OTHER
|
||||
config ESPTOOLPY_MONITOR_BAUD_OTHER_VAL
|
||||
int "Custom baud rate value" if ESPTOOLPY_MONITOR_BAUD_OTHER
|
||||
default 115200
|
||||
|
||||
config MONITOR_BAUD
|
||||
config ESPTOOLPY_MONITOR_BAUD
|
||||
int
|
||||
default 9600 if MONITOR_BAUD_9600B
|
||||
default 57600 if MONITOR_BAUD_57600B
|
||||
default 115200 if MONITOR_BAUD_115200B
|
||||
default 230400 if MONITOR_BAUD_230400B
|
||||
default 921600 if MONITOR_BAUD_921600B
|
||||
default 2000000 if MONITOR_BAUD_2MB
|
||||
default MONITOR_BAUD_OTHER_VAL if MONITOR_BAUD_OTHER
|
||||
default 9600 if ESPTOOLPY_MONITOR_BAUD_9600B
|
||||
default 57600 if ESPTOOLPY_MONITOR_BAUD_57600B
|
||||
default 115200 if ESPTOOLPY_MONITOR_BAUD_115200B
|
||||
default 230400 if ESPTOOLPY_MONITOR_BAUD_230400B
|
||||
default 921600 if ESPTOOLPY_MONITOR_BAUD_921600B
|
||||
default 2000000 if ESPTOOLPY_MONITOR_BAUD_2MB
|
||||
default ESPTOOLPY_MONITOR_BAUD_OTHER_VAL if ESPTOOLPY_MONITOR_BAUD_OTHER
|
||||
|
||||
endmenu
|
||||
|
||||
@@ -81,7 +81,7 @@ erase_flash: | check_python_dependencies
|
||||
@echo "Erasing entire flash..."
|
||||
$(ESPTOOLPY_SERIAL) erase_flash
|
||||
|
||||
MONITORBAUD ?= $(CONFIG_MONITOR_BAUD)
|
||||
MONITORBAUD ?= $(CONFIG_ESPTOOLPY_MONITOR_BAUD)
|
||||
|
||||
MONITOR_PYTHON := $(PYTHON)
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# sdkconfig replacement configurations for deprecated options formatted as
|
||||
# CONFIG_DEPRECATED_OPTION CONFIG_NEW_OPTION
|
||||
|
||||
CONFIG_FLASHMODE_QIO CONFIG_ESPTOOLPY_FLASHMODE_QIO
|
||||
CONFIG_FLASHMODE_QOUT CONFIG_ESPTOOLPY_FLASHMODE_QOUT
|
||||
CONFIG_FLASHMODE_DIO CONFIG_ESPTOOLPY_FLASHMODE_DIO
|
||||
CONFIG_FLASHMODE_DOUT CONFIG_ESPTOOLPY_FLASHMODE_DOUT
|
||||
|
||||
CONFIG_MONITOR_BAUD CONFIG_ESPTOOLPY_MONITOR_BAUD
|
||||
CONFIG_MONITOR_BAUD_9600B CONFIG_ESPTOOLPY_MONITOR_BAUD_9600B
|
||||
CONFIG_MONITOR_BAUD_57600B CONFIG_ESPTOOLPY_MONITOR_BAUD_57600B
|
||||
CONFIG_MONITOR_BAUD_115200B CONFIG_ESPTOOLPY_MONITOR_BAUD_115200B
|
||||
CONFIG_MONITOR_BAUD_230400B CONFIG_ESPTOOLPY_MONITOR_BAUD_230400B
|
||||
CONFIG_MONITOR_BAUD_921600B CONFIG_ESPTOOLPY_MONITOR_BAUD_921600B
|
||||
CONFIG_MONITOR_BAUD_2MB CONFIG_ESPTOOLPY_MONITOR_BAUD_2MB
|
||||
CONFIG_MONITOR_BAUD_OTHER CONFIG_ESPTOOLPY_MONITOR_BAUD_OTHER
|
||||
CONFIG_MONITOR_BAUD_OTHER_VAL CONFIG_ESPTOOLPY_MONITOR_BAUD_OTHER_VAL
|
||||
Reference in New Issue
Block a user