Merge branch 'bugfix/fixes_from_kconfiglib_update' into 'master'

Fix of menuconfig bug for MSYS2 and a couple of cosmetic changes

See merge request espressif/esp-idf!6255
pull/4198/head
Angus Gratton 2019-10-10 11:06:29 +08:00
commit 6df8658b5b
4 zmienionych plików z 17 dodań i 11 usunięć

Wyświetl plik

@ -40,9 +40,10 @@ menu "Common ESP-related"
config ESP_IPC_TASK_STACK_SIZE config ESP_IPC_TASK_STACK_SIZE
int "Inter-Processor Call (IPC) task stack size" int "Inter-Processor Call (IPC) task stack size"
default 1024
range 512 65536 if !ESP32_APPTRACE_ENABLE range 512 65536 if !ESP32_APPTRACE_ENABLE
range 2048 65536 if ESP32_APPTRACE_ENABLE range 2048 65536 if ESP32_APPTRACE_ENABLE
default 2048 if ESP32_APPTRACE_ENABLE
default 1024
help help
Configure the IPC tasks stack size. One IPC task runs on each core Configure the IPC tasks stack size. One IPC task runs on each core
(in dual core mode), and allows for cross-core function calls. (in dual core mode), and allows for cross-core function calls.

Wyświetl plik

@ -2,7 +2,7 @@ menu "Example Configuration"
config WEBSOCKET_URI config WEBSOCKET_URI
string "Websocket endpoint URI" string "Websocket endpoint URI"
default "ws://echo.websocket.org"; default "ws://echo.websocket.org"
help help
URL of websocket endpoint this example connects to and sends echo URL of websocket endpoint this example connects to and sends echo

Wyświetl plik

@ -37,7 +37,7 @@ function(__target_check)
idf_build_get_property(idf_target IDF_TARGET) idf_build_get_property(idf_target IDF_TARGET)
if(NOT ${idf_target} STREQUAL ${CONFIG_IDF_TARGET}) if(NOT ${idf_target} STREQUAL ${CONFIG_IDF_TARGET})
message(FATAL_ERROR "CONFIG_IDF_TARGET in sdkconfig does not match " message(FATAL_ERROR "CONFIG_IDF_TARGET in sdkconfig does not match "
"IDF_TARGET environement variable. To change the target, delete " "IDF_TARGET environment variable. To change the target, delete "
"sdkconfig file and build the project again.") "sdkconfig file and build the project again.")
endif() endif()
endfunction() endfunction()
@ -66,4 +66,4 @@ macro(__target_set_toolchain)
"checked ${toolchain_file_global} and ${toolchain_file_component}") "checked ${toolchain_file_global} and ${toolchain_file_component}")
endif() endif()
endif() endif()
endmacro() endmacro()

Wyświetl plik

@ -1529,13 +1529,18 @@ if __name__ == "__main__":
if ("MSYSTEM" in os.environ) and ( if ("MSYSTEM" in os.environ) and (
not os.environ.get("_", "").endswith(WINPTY_EXE) and WINPTY_VAR not in os.environ not os.environ.get("_", "").endswith(WINPTY_EXE) and WINPTY_VAR not in os.environ
): ):
os.environ[WINPTY_VAR] = "1" # the value is of no interest to us
# idf.py calls itself with "winpty" and WINPTY global variable set if 'menuconfig' in sys.argv:
ret = subprocess.call( # don't use winpty for menuconfig because it will print weird characters
[WINPTY_EXE, sys.executable] + sys.argv, env=os.environ main()
) else:
if ret: os.environ[WINPTY_VAR] = "1" # the value is of no interest to us
raise SystemExit(ret) # idf.py calls itself with "winpty" and WINPTY global variable set
ret = subprocess.call(
[WINPTY_EXE, sys.executable] + sys.argv, env=os.environ
)
if ret:
raise SystemExit(ret)
elif os.name == "posix" and not _valid_unicode_config(): elif os.name == "posix" and not _valid_unicode_config():
# Trying to find best utf-8 locale available on the system and restart python with it # Trying to find best utf-8 locale available on the system and restart python with it