diff --git a/components/esp-tls/esp_tls_mbedtls.c b/components/esp-tls/esp_tls_mbedtls.c index 874866a18a..02404c4e29 100644 --- a/components/esp-tls/esp_tls_mbedtls.c +++ b/components/esp-tls/esp_tls_mbedtls.c @@ -49,7 +49,7 @@ static esp_err_t esp_mbedtls_init_pk_ctx_for_ds(const void *pki); static const char *TAG = "esp-tls-mbedtls"; static mbedtls_x509_crt *global_cacert = NULL; -#if CONFIG_NEWLIB_NANO_FORMAT +#if CONFIG_LIBC_NEWLIB_NANO_FORMAT #define NEWLIB_NANO_SSIZE_T_COMPAT_FORMAT "X" #define NEWLIB_NANO_SIZE_T_COMPAT_FORMAT PRIu32 #define NEWLIB_NANO_SIZE_T_COMPAT_CAST(size_t_var) (uint32_t)size_t_var diff --git a/components/esp_driver_gptimer/test_apps/gptimer/sdkconfig.defaults b/components/esp_driver_gptimer/test_apps/gptimer/sdkconfig.defaults index f365803cb0..c8351eb3a6 100644 --- a/components/esp_driver_gptimer/test_apps/gptimer/sdkconfig.defaults +++ b/components/esp_driver_gptimer/test_apps/gptimer/sdkconfig.defaults @@ -4,7 +4,7 @@ # CONFIG_ESP_TASK_WDT_INIT is not set CONFIG_FREERTOS_HZ=1000 # Disable nano printf, because we need to print the timer count in %llu format -CONFIG_NEWLIB_NANO_FORMAT=n +CONFIG_LIBC_NEWLIB_NANO_FORMAT=n # primitives for checking sleep internal state CONFIG_ESP_SLEEP_DEBUG=y diff --git a/components/esp_driver_uart/test_apps/uart_vfs/main/test_vfs_uart.c b/components/esp_driver_uart/test_apps/uart_vfs/main/test_vfs_uart.c index 8e3c7f7486..ee69ec7498 100644 --- a/components/esp_driver_uart/test_apps/uart_vfs/main/test_vfs_uart.c +++ b/components/esp_driver_uart/test_apps/uart_vfs/main/test_vfs_uart.c @@ -81,7 +81,7 @@ TEST_CASE("CRs are removed from the stdin correctly", "[vfs_uart]") // If there is data available at the moment, read() also returns directly with the currently available size const char* send_str = "1234567890\n\r123\r\n4\n"; - /* with CONFIG_NEWLIB_STDOUT_ADDCR, the following will be sent on the wire. + /* with CONFIG_LIBC_STDOUT_LINE_ENDING_CRLF, the following will be sent on the wire. * (last character of each part is marked with a hat) * * 1234567890\r\n\r123\r\r\n4\r\n diff --git a/components/esp_http_server/src/esp_httpd_priv.h b/components/esp_http_server/src/esp_httpd_priv.h index cd2a3e1d34..47591e8434 100644 --- a/components/esp_http_server/src/esp_httpd_priv.h +++ b/components/esp_http_server/src/esp_httpd_priv.h @@ -22,7 +22,7 @@ extern "C" { #endif -#if CONFIG_NEWLIB_NANO_FORMAT +#if CONFIG_LIBC_NEWLIB_NANO_FORMAT #define NEWLIB_NANO_COMPAT_FORMAT PRIu32 #define NEWLIB_NANO_COMPAT_CAST(size_t_var) (uint32_t)size_t_var #else diff --git a/components/esp_system/include/esp_task.h b/components/esp_system/include/esp_task.h index 1cde7c8bf7..8dbbbf73ab 100644 --- a/components/esp_system/include/esp_task.h +++ b/components/esp_system/include/esp_task.h @@ -27,10 +27,10 @@ #define ESP_TASK_PRIO_MAX (configMAX_PRIORITIES) #define ESP_TASK_PRIO_MIN (0) -/* Bt contoller Task */ +/* Bt controller Task */ /* controller */ #define ESP_TASK_BT_CONTROLLER_PRIO (ESP_TASK_PRIO_MAX - 2) -#ifdef CONFIG_NEWLIB_NANO_FORMAT +#ifdef CONFIG_LIBC_NEWLIB_NANO_FORMAT #define TASK_EXTRA_STACK_SIZE (0) #else #define TASK_EXTRA_STACK_SIZE (512) diff --git a/components/esp_system/startup_funcs.c b/components/esp_system/startup_funcs.c index c586c29335..78caab6a32 100644 --- a/components/esp_system/startup_funcs.c +++ b/components/esp_system/startup_funcs.c @@ -17,9 +17,6 @@ #include "esp_private/cache_utils.h" #include "spi_flash_mmap.h" #include "esp_flash_internal.h" -#if CONFIG_NEWLIB_ENABLED -#include "esp_newlib.h" -#endif #include "esp_newlib.h" #include "esp_xt_wdt.h" #include "esp_cpu.h" diff --git a/components/mbedtls/test_apps/main/test_ecp.c b/components/mbedtls/test_apps/main/test_ecp.c index db42587030..a40525a76d 100644 --- a/components/mbedtls/test_apps/main/test_ecp.c +++ b/components/mbedtls/test_apps/main/test_ecp.c @@ -41,7 +41,7 @@ #define ACCESS_ECDH(S, var) S.MBEDTLS_PRIVATE(ctx).MBEDTLS_PRIVATE(mbed_ecdh).MBEDTLS_PRIVATE(var) #endif -#if CONFIG_NEWLIB_NANO_FORMAT +#if CONFIG_LIBC_NEWLIB_NANO_FORMAT #define NEWLIB_NANO_COMPAT_FORMAT PRIu32 #define NEWLIB_NANO_COMPAT_CAST(int64_t_var) (uint32_t)int64_t_var #else diff --git a/components/mbedtls/test_apps/main/test_mbedtls_ecdsa.c b/components/mbedtls/test_apps/main/test_mbedtls_ecdsa.c index 71823376a1..fba2088619 100644 --- a/components/mbedtls/test_apps/main/test_mbedtls_ecdsa.c +++ b/components/mbedtls/test_apps/main/test_mbedtls_ecdsa.c @@ -36,7 +36,7 @@ #define TEST_ASSERT_MBEDTLS_OK(X) TEST_ASSERT_EQUAL_HEX32(0, -(X)) -#if CONFIG_NEWLIB_NANO_FORMAT +#if CONFIG_LIBC_NEWLIB_NANO_FORMAT #define NEWLIB_NANO_COMPAT_FORMAT PRIu32 #define NEWLIB_NANO_COMPAT_CAST(int64_t_var) (uint32_t)int64_t_var #else diff --git a/components/newlib/src/newlib_init.c b/components/newlib/src/newlib_init.c index f4a250756f..f65d94d94e 100644 --- a/components/newlib/src/newlib_init.c +++ b/components/newlib/src/newlib_init.c @@ -101,7 +101,7 @@ static struct syscall_stub_table s_stub_table = { ._lock_release = &_lock_release, ._lock_release_recursive = &_lock_release_recursive, #endif -#ifdef CONFIG_NEWLIB_NANO_FORMAT +#ifdef CONFIG_LIBC_NEWLIB_NANO_FORMAT ._printf_float = &_printf_float, ._scanf_float = &_scanf_float, #else diff --git a/components/newlib/test_apps/newlib/main/test_newlib.c b/components/newlib/test_apps/newlib/main/test_newlib.c index f8e3a8f468..881813d285 100644 --- a/components/newlib/test_apps/newlib/main/test_newlib.c +++ b/components/newlib/test_apps/newlib/main/test_newlib.c @@ -135,23 +135,23 @@ static bool fn_in_rom(void *fn) /* Older chips have newlib nano in rom as well, but this is not linked in due to us now using 64 bit time_t and the ROM code was compiled for 32 bit. */ -#define PRINTF_NANO_IN_ROM (CONFIG_NEWLIB_NANO_FORMAT && ESP_ROM_HAS_NEWLIB_NANO_FORMAT && !ESP_ROM_HAS_NEWLIB_32BIT_TIME && !ESP_ROM_HAS_NEWLIB_NANO_PRINTF_FLOAT_BUG) +#define PRINTF_NANO_IN_ROM (CONFIG_LIBC_NEWLIB_NANO_FORMAT && ESP_ROM_HAS_NEWLIB_NANO_FORMAT && !ESP_ROM_HAS_NEWLIB_32BIT_TIME && !ESP_ROM_HAS_NEWLIB_NANO_PRINTF_FLOAT_BUG) -#define SSCANF_NANO_IN_ROM (CONFIG_NEWLIB_NANO_FORMAT && CONFIG_IDF_TARGET_ESP32C2) +#define SSCANF_NANO_IN_ROM (CONFIG_LIBC_NEWLIB_NANO_FORMAT && CONFIG_IDF_TARGET_ESP32C2) TEST_CASE("check if ROM or Flash is used for functions", "[newlib]") { -#if CONFIG_LIBC_NEWLIB && (PRINTF_NANO_IN_ROM || (ESP_ROM_HAS_NEWLIB_NORMAL_FORMAT && !CONFIG_NEWLIB_NANO_FORMAT)) +#if CONFIG_LIBC_NEWLIB && (PRINTF_NANO_IN_ROM || (ESP_ROM_HAS_NEWLIB_NORMAL_FORMAT && !CONFIG_LIBC_NEWLIB_NANO_FORMAT)) TEST_ASSERT(fn_in_rom(vfprintf)); #else TEST_ASSERT_FALSE(fn_in_rom(vfprintf)); -#endif // CONFIG_LIBC_NEWLIB && (PRINTF_NANO_IN_ROM || (ESP_ROM_HAS_NEWLIB_NORMAL_FORMAT && !CONFIG_NEWLIB_NANO_FORMAT)) +#endif // CONFIG_LIBC_NEWLIB && (PRINTF_NANO_IN_ROM || (ESP_ROM_HAS_NEWLIB_NORMAL_FORMAT && !CONFIG_LIBC_NEWLIB_NANO_FORMAT)) -#if CONFIG_LIBC_NEWLIB && (SSCANF_NANO_IN_ROM || (ESP_ROM_HAS_NEWLIB_NORMAL_FORMAT && !CONFIG_NEWLIB_NANO_FORMAT)) +#if CONFIG_LIBC_NEWLIB && (SSCANF_NANO_IN_ROM || (ESP_ROM_HAS_NEWLIB_NORMAL_FORMAT && !CONFIG_LIBC_NEWLIB_NANO_FORMAT)) TEST_ASSERT(fn_in_rom(sscanf)); #else TEST_ASSERT_FALSE(fn_in_rom(sscanf)); -#endif // CONFIG_LIBC_NEWLIB && (SSCANF_NANO_IN_ROM || (ESP_ROM_HAS_NEWLIB_NORMAL_FORMAT && !CONFIG_NEWLIB_NANO_FORMAT)) +#endif // CONFIG_LIBC_NEWLIB && (SSCANF_NANO_IN_ROM || (ESP_ROM_HAS_NEWLIB_NORMAL_FORMAT && !CONFIG_LIBC_NEWLIB_NANO_FORMAT)) #if CONFIG_LIBC_NEWLIB #if defined(CONFIG_IDF_TARGET_ESP32) @@ -179,7 +179,7 @@ TEST_CASE("check if ROM or Flash is used for functions", "[newlib]") #endif // CONFIG_LIBC_NEWLIB } -#ifndef CONFIG_NEWLIB_NANO_FORMAT +#ifndef CONFIG_LIBC_NEWLIB_NANO_FORMAT TEST_CASE("test 64bit int formats", "[newlib]") { char* res = NULL; @@ -196,7 +196,7 @@ TEST_CASE("test 64bit int formats", "[newlib]") TEST_ASSERT_EQUAL(1, ret); TEST_ASSERT_EQUAL(val, sval); } -#else // CONFIG_NEWLIB_NANO_FORMAT +#else // CONFIG_LIBC_NEWLIB_NANO_FORMAT #if CONFIG_SPIRAM_CACHE_WORKAROUND static bool fn_in_iram(void *fn) @@ -318,7 +318,7 @@ TEST_CASE("test 64bit int formats", "[newlib]") TEST_ASSERT_EQUAL(0, ret); } -#endif // CONFIG_NEWLIB_NANO_FORMAT +#endif // CONFIG_LIBC_NEWLIB_NANO_FORMAT TEST_CASE("fmod and fmodf work as expected", "[newlib]") { diff --git a/components/newlib/test_apps/newlib/main/test_time.c b/components/newlib/test_apps/newlib/main/test_time.c index 2563e84bc5..d15b4fceae 100644 --- a/components/newlib/test_apps/newlib/main/test_time.c +++ b/components/newlib/test_apps/newlib/main/test_time.c @@ -473,7 +473,7 @@ static struct timeval get_time(const char *desc, char *buffer) gettimeofday(×tamp, NULL); struct tm* tm_info = localtime(×tamp.tv_sec); strftime(buffer, 32, "%c", tm_info); -#if !CONFIG_NEWLIB_NANO_FORMAT +#if !CONFIG_LIBC_NEWLIB_NANO_FORMAT ESP_LOGI("TAG", "%s: %016llX (%s)", desc, timestamp.tv_sec, buffer); #endif return timestamp; @@ -490,7 +490,7 @@ TEST_CASE("test time_t wide 64 bits", "[newlib]") tzset(); struct tm tm = {4, 14, 3, 19, 0, 138, 0, 0, 0}; struct timeval timestamp = { mktime(&tm), 0 }; -#if !CONFIG_NEWLIB_NANO_FORMAT +#if !CONFIG_LIBC_NEWLIB_NANO_FORMAT ESP_LOGI("TAG", "timestamp: %016llX", timestamp.tv_sec); #endif settimeofday(×tamp, NULL); @@ -527,7 +527,7 @@ TEST_CASE("test time functions wide 64 bits", "[newlib]") localtime_r(&now, &timeinfo); time_t t = mktime(&timeinfo); -#if !CONFIG_NEWLIB_NANO_FORMAT +#if !CONFIG_LIBC_NEWLIB_NANO_FORMAT ESP_LOGI("TAG", "Test mktime(). Time: %016llX", t); #endif TEST_ASSERT_EQUAL(timestamp.tv_sec, t); diff --git a/components/newlib/test_apps/newlib/sdkconfig.ci.default b/components/newlib/test_apps/newlib/sdkconfig.ci.default index 21dc4813e2..a40fd70789 100644 --- a/components/newlib/test_apps/newlib/sdkconfig.ci.default +++ b/components/newlib/test_apps/newlib/sdkconfig.ci.default @@ -1,2 +1,2 @@ # Test all chips with nano off, nano on is tested in options config -CONFIG_NEWLIB_NANO_FORMAT=n +CONFIG_LIBC_NEWLIB_NANO_FORMAT=n diff --git a/components/newlib/test_apps/newlib/sdkconfig.ci.options b/components/newlib/test_apps/newlib/sdkconfig.ci.options index caf70fc890..06ea74d6fe 100644 --- a/components/newlib/test_apps/newlib/sdkconfig.ci.options +++ b/components/newlib/test_apps/newlib/sdkconfig.ci.options @@ -1,2 +1,2 @@ # Test with misc newlib config options turned on -CONFIG_NEWLIB_NANO_FORMAT=y +CONFIG_LIBC_NEWLIB_NANO_FORMAT=y diff --git a/components/newlib/test_apps/newlib/sdkconfig.ci.single_core_esp32 b/components/newlib/test_apps/newlib/sdkconfig.ci.single_core_esp32 index b7381e9523..2cced6f113 100644 --- a/components/newlib/test_apps/newlib/sdkconfig.ci.single_core_esp32 +++ b/components/newlib/test_apps/newlib/sdkconfig.ci.single_core_esp32 @@ -1,4 +1,4 @@ CONFIG_IDF_TARGET="esp32" CONFIG_FREERTOS_UNICORE=y # IDF-6964 test nano format in this configuration (current tests are not passing, so keep disabled for now) -CONFIG_NEWLIB_NANO_FORMAT=n +CONFIG_LIBC_NEWLIB_NANO_FORMAT=n diff --git a/examples/bluetooth/bluedroid/ble_50/ble50_security_client/sdkconfig.defaults.esp32c2 b/examples/bluetooth/bluedroid/ble_50/ble50_security_client/sdkconfig.defaults.esp32c2 index d7addb1c67..ac71c68387 100644 --- a/examples/bluetooth/bluedroid/ble_50/ble50_security_client/sdkconfig.defaults.esp32c2 +++ b/examples/bluetooth/bluedroid/ble_50/ble50_security_client/sdkconfig.defaults.esp32c2 @@ -4,4 +4,4 @@ CONFIG_IDF_TARGET="esp32c2" CONFIG_BT_ENABLED=y CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=2304 -# CONFIG_NEWLIB_NANO_FORMAT is not set +# CONFIG_LIBC_NEWLIB_NANO_FORMAT is not set diff --git a/examples/bluetooth/bluedroid/ble_50/ble50_security_server/sdkconfig.defaults.esp32c2 b/examples/bluetooth/bluedroid/ble_50/ble50_security_server/sdkconfig.defaults.esp32c2 index d7addb1c67..ac71c68387 100644 --- a/examples/bluetooth/bluedroid/ble_50/ble50_security_server/sdkconfig.defaults.esp32c2 +++ b/examples/bluetooth/bluedroid/ble_50/ble50_security_server/sdkconfig.defaults.esp32c2 @@ -4,4 +4,4 @@ CONFIG_IDF_TARGET="esp32c2" CONFIG_BT_ENABLED=y CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=2304 -# CONFIG_NEWLIB_NANO_FORMAT is not set +# CONFIG_LIBC_NEWLIB_NANO_FORMAT is not set diff --git a/examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults.esp32c2 b/examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults.esp32c2 index d7addb1c67..ac71c68387 100644 --- a/examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults.esp32c2 +++ b/examples/bluetooth/bluedroid/ble_50/multi-adv/sdkconfig.defaults.esp32c2 @@ -4,4 +4,4 @@ CONFIG_IDF_TARGET="esp32c2" CONFIG_BT_ENABLED=y CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=2304 -# CONFIG_NEWLIB_NANO_FORMAT is not set +# CONFIG_LIBC_NEWLIB_NANO_FORMAT is not set diff --git a/examples/bluetooth/bluedroid/ble_50/periodic_adv/sdkconfig.defaults.esp32c2 b/examples/bluetooth/bluedroid/ble_50/periodic_adv/sdkconfig.defaults.esp32c2 index d7addb1c67..ac71c68387 100644 --- a/examples/bluetooth/bluedroid/ble_50/periodic_adv/sdkconfig.defaults.esp32c2 +++ b/examples/bluetooth/bluedroid/ble_50/periodic_adv/sdkconfig.defaults.esp32c2 @@ -4,4 +4,4 @@ CONFIG_IDF_TARGET="esp32c2" CONFIG_BT_ENABLED=y CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=2304 -# CONFIG_NEWLIB_NANO_FORMAT is not set +# CONFIG_LIBC_NEWLIB_NANO_FORMAT is not set diff --git a/examples/bluetooth/bluedroid/ble_50/periodic_sync/sdkconfig.defaults.esp32c2 b/examples/bluetooth/bluedroid/ble_50/periodic_sync/sdkconfig.defaults.esp32c2 index d7addb1c67..ac71c68387 100644 --- a/examples/bluetooth/bluedroid/ble_50/periodic_sync/sdkconfig.defaults.esp32c2 +++ b/examples/bluetooth/bluedroid/ble_50/periodic_sync/sdkconfig.defaults.esp32c2 @@ -4,4 +4,4 @@ CONFIG_IDF_TARGET="esp32c2" CONFIG_BT_ENABLED=y CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=2304 -# CONFIG_NEWLIB_NANO_FORMAT is not set +# CONFIG_LIBC_NEWLIB_NANO_FORMAT is not set diff --git a/examples/openthread/ot_rcp/README.md b/examples/openthread/ot_rcp/README.md index 46bf3ef6a7..0acd8e8899 100644 --- a/examples/openthread/ot_rcp/README.md +++ b/examples/openthread/ot_rcp/README.md @@ -31,7 +31,7 @@ CONFIG_COMPILER_SAVE_RESTORE_LIBCALLS=y CONFIG_ESP_ERR_TO_NAME_LOOKUP=n CONFIG_ESP_SYSTEM_PANIC_SILENT_REBOOT=y CONFIG_LOG_DEFAULT_LEVEL_NONE=y -CONFIG_NEWLIB_NANO_FORMAT=y +CONFIG_LIBC_NEWLIB_NANO_FORMAT=y CONFIG_OPENTHREAD_LOG_LEVEL_DYNAMIC=n CONFIG_OPENTHREAD_LOG_LEVEL_NONE=y ``` diff --git a/examples/openthread/ot_rcp/sdkconfig.defaults b/examples/openthread/ot_rcp/sdkconfig.defaults index 9143959134..009e2dadfd 100644 --- a/examples/openthread/ot_rcp/sdkconfig.defaults +++ b/examples/openthread/ot_rcp/sdkconfig.defaults @@ -31,8 +31,8 @@ CONFIG_OPENTHREAD_DNS_CLIENT=n # # Deprecated options for backward compatibility # -CONFIG_LOG_BOOTLOADER_LEVEL_ERROR=y -CONFIG_LOG_BOOTLOADER_LEVEL_INFO=n +CONFIG_BOOTLOADER_LOG_LEVEL_ERROR=y +CONFIG_BOOTLOADER_LOG_LEVEL_INFO=n # End of deprecated options # @@ -45,6 +45,6 @@ CONFIG_COMPILER_SAVE_RESTORE_LIBCALLS=y CONFIG_ESP_ERR_TO_NAME_LOOKUP=n CONFIG_ESP_SYSTEM_PANIC_SILENT_REBOOT=y CONFIG_LOG_DEFAULT_LEVEL_NONE=y -CONFIG_NEWLIB_NANO_FORMAT=y +CONFIG_LIBC_NEWLIB_NANO_FORMAT=y CONFIG_OPENTHREAD_LOG_LEVEL_DYNAMIC=n CONFIG_OPENTHREAD_LOG_LEVEL_NONE=y diff --git a/examples/peripherals/timer_group/gptimer/sdkconfig.defaults b/examples/peripherals/timer_group/gptimer/sdkconfig.defaults index 82d4960857..de628c3896 100644 --- a/examples/peripherals/timer_group/gptimer/sdkconfig.defaults +++ b/examples/peripherals/timer_group/gptimer/sdkconfig.defaults @@ -3,4 +3,4 @@ # # Disable nano printf, because we need to print the timer count in %llu format -CONFIG_NEWLIB_NANO_FORMAT=n +CONFIG_LIBC_NEWLIB_NANO_FORMAT=n diff --git a/examples/peripherals/usb/host/msc/main/msc_example_main.c b/examples/peripherals/usb/host/msc/main/msc_example_main.c index 690fb82dd3..8b5a9143f3 100644 --- a/examples/peripherals/usb/host/msc/main/msc_example_main.c +++ b/examples/peripherals/usb/host/msc/main/msc_example_main.c @@ -286,7 +286,7 @@ static void print_device_info(msc_host_device_info_t *info) printf("\t Sector count: %"PRIu32"\n", info->sector_count); printf("\t PID: 0x%04X \n", info->idProduct); printf("\t VID: 0x%04X \n", info->idVendor); -#ifndef CONFIG_NEWLIB_NANO_FORMAT +#ifndef CONFIG_LIBC_NEWLIB_NANO_FORMAT wprintf(L"\t iProduct: %S \n", info->iProduct); wprintf(L"\t iManufacturer: %S \n", info->iManufacturer); wprintf(L"\t iSerialNumber: %S \n", info->iSerialNumber); diff --git a/examples/system/esp_timer/sdkconfig.defaults b/examples/system/esp_timer/sdkconfig.defaults index c4a1e55cf8..d37d5292ef 100644 --- a/examples/system/esp_timer/sdkconfig.defaults +++ b/examples/system/esp_timer/sdkconfig.defaults @@ -1,6 +1,6 @@ # With this option enabled, esp_timer_dump() prints more data about timers in the output log CONFIG_ESP_TIMER_PROFILING=y -# NEWLIB_NANO_FORMAT is enabled by default on ESP32-C2 +# LIBC_NEWLIB_NANO_FORMAT is enabled by default on ESP32-C2 # This example needs 64-bit integer formatting, this is why this option is disabled -CONFIG_NEWLIB_NANO_FORMAT=n +CONFIG_LIBC_NEWLIB_NANO_FORMAT=n diff --git a/examples/system/light_sleep/main/light_sleep_example_main.c b/examples/system/light_sleep/main/light_sleep_example_main.c index a0f03fd5db..6cf7eecca6 100644 --- a/examples/system/light_sleep/main/light_sleep_example_main.c +++ b/examples/system/light_sleep/main/light_sleep_example_main.c @@ -50,7 +50,7 @@ static void light_sleep_task(void *args) } else { wakeup_reason = "other"; } -#if CONFIG_NEWLIB_NANO_FORMAT +#if CONFIG_LIBC_NEWLIB_NANO_FORMAT /* printf in newlib-nano does not support %ll format, causing example test fail */ printf("Returned from light sleep, reason: %s, t=%d ms, slept for %d ms\n", wakeup_reason, (int) (t_after_us / 1000), (int) ((t_after_us - t_before_us) / 1000)); diff --git a/tools/ldgen/samples/sdkconfig b/tools/ldgen/samples/sdkconfig index 1ef158ba8c..dd9a47e81a 100644 --- a/tools/ldgen/samples/sdkconfig +++ b/tools/ldgen/samples/sdkconfig @@ -146,7 +146,7 @@ CONFIG_LIBC_STDOUT_LINE_ENDING_CR= CONFIG_LIBC_STDIN_LINE_ENDING_CRLF= CONFIG_LIBC_STDIN_LINE_ENDING_LF= CONFIG_LIBC_STDIN_LINE_ENDING_CR=y -CONFIG_NEWLIB_NANO_FORMAT= +CONFIG_LIBC_NEWLIB_NANO_FORMAT= CONFIG_ESP_CONSOLE_UART_DEFAULT=y CONFIG_ESP_CONSOLE_UART_CUSTOM= CONFIG_ESP_CONSOLE_UART_NONE= diff --git a/tools/test_apps/system/gdb_loadable_elf/sdkconfig.defaults b/tools/test_apps/system/gdb_loadable_elf/sdkconfig.defaults index dbcd50d77e..3c33e5aa9c 100644 --- a/tools/test_apps/system/gdb_loadable_elf/sdkconfig.defaults +++ b/tools/test_apps/system/gdb_loadable_elf/sdkconfig.defaults @@ -1,7 +1,7 @@ CONFIG_LOG_DEFAULT_LEVEL_NONE=y CONFIG_APP_BUILD_TYPE_RAM=y CONFIG_VFS_SUPPORT_TERMIOS=n -CONFIG_NEWLIB_NANO_FORMAT=y +CONFIG_LIBC_NEWLIB_NANO_FORMAT=y CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y CONFIG_ESP_DEBUG_STUBS_ENABLE=n CONFIG_ESP_ERR_TO_NAME_LOOKUP=n diff --git a/tools/test_build_system/test_build.py b/tools/test_build_system/test_build.py index da8d17c73c..90835693bf 100644 --- a/tools/test_build_system/test_build.py +++ b/tools/test_build_system/test_build.py @@ -207,7 +207,7 @@ def test_build_loadable_elf(idf_py: IdfPyFunc, test_app_copy: Path) -> None: [ 'CONFIG_APP_BUILD_TYPE_RAM=y', 'CONFIG_VFS_SUPPORT_TERMIOS=n', - 'CONFIG_NEWLIB_NANO_FORMAT=y', + 'CONFIG_LIBC_NEWLIB_NANO_FORMAT=y', 'CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y', 'CONFIG_ESP_ERR_TO_NAME_LOOKUP=n', ]