mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-03 18:40:59 +02:00
change(newlib): change CONFIG_NEWLIB* prefix to CONFIG_LIBC_NEWLIB*
This commit is contained in:
2
Kconfig
2
Kconfig
@@ -233,7 +233,7 @@ mainmenu "Espressif IoT Development Framework Configuration"
|
|||||||
|
|
||||||
CONFIG_APP_BUILD_TYPE_RAM=y
|
CONFIG_APP_BUILD_TYPE_RAM=y
|
||||||
CONFIG_VFS_SUPPORT_TERMIOS=
|
CONFIG_VFS_SUPPORT_TERMIOS=
|
||||||
CONFIG_NEWLIB_NANO_FORMAT=y
|
CONFIG_LIBC_NEWLIB_NANO_FORMAT=y
|
||||||
CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
|
CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
|
||||||
CONFIG_ESP_DEBUG_STUBS_ENABLE=
|
CONFIG_ESP_DEBUG_STUBS_ENABLE=
|
||||||
CONFIG_ESP_ERR_TO_NAME_LOOKUP=
|
CONFIG_ESP_ERR_TO_NAME_LOOKUP=
|
||||||
|
@@ -315,7 +315,7 @@ else() # Regular app build
|
|||||||
rom_linker_script("newlib")
|
rom_linker_script("newlib")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_ESP_ROM_HAS_NEWLIB_NANO_FORMAT AND CONFIG_LIBC_NEWLIB AND CONFIG_NEWLIB_NANO_FORMAT)
|
if(CONFIG_ESP_ROM_HAS_NEWLIB_NANO_FORMAT AND CONFIG_LIBC_NEWLIB AND CONFIG_LIBC_NEWLIB_NANO_FORMAT)
|
||||||
if(NOT CONFIG_ESP_ROM_HAS_NEWLIB_32BIT_TIME AND NOT CONFIG_ESP_ROM_HAS_NEWLIB_NANO_PRINTF_FLOAT_BUG)
|
if(NOT CONFIG_ESP_ROM_HAS_NEWLIB_32BIT_TIME AND NOT CONFIG_ESP_ROM_HAS_NEWLIB_NANO_PRINTF_FLOAT_BUG)
|
||||||
# Newlib-nano functions contains time_t related functions
|
# Newlib-nano functions contains time_t related functions
|
||||||
# and cannot be used if they were compiled with 32 bit time_t
|
# and cannot be used if they were compiled with 32 bit time_t
|
||||||
@@ -323,7 +323,7 @@ else() # Regular app build
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_ESP_ROM_HAS_NEWLIB_NORMAL_FORMAT AND CONFIG_LIBC_NEWLIB AND NOT CONFIG_NEWLIB_NANO_FORMAT)
|
if(CONFIG_ESP_ROM_HAS_NEWLIB_NORMAL_FORMAT AND CONFIG_LIBC_NEWLIB AND NOT CONFIG_LIBC_NEWLIB_NANO_FORMAT)
|
||||||
rom_linker_script("newlib-normal")
|
rom_linker_script("newlib-normal")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
@@ -105,7 +105,7 @@ list(APPEND EXTRA_LINK_FLAGS "-u esp_libc_include_init_funcs")
|
|||||||
list(APPEND EXTRA_LINK_FLAGS "-u esp_libc_init_funcs")
|
list(APPEND EXTRA_LINK_FLAGS "-u esp_libc_init_funcs")
|
||||||
target_link_libraries(${COMPONENT_LIB} INTERFACE "${EXTRA_LINK_FLAGS}")
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "${EXTRA_LINK_FLAGS}")
|
||||||
|
|
||||||
if(CONFIG_NEWLIB_NANO_FORMAT)
|
if(CONFIG_LIBC_NEWLIB_NANO_FORMAT)
|
||||||
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||||
set(libc_dir_cmd ${CMAKE_C_COMPILER})
|
set(libc_dir_cmd ${CMAKE_C_COMPILER})
|
||||||
string(REPLACE " " ";" cflags_list ${CMAKE_C_FLAGS})
|
string(REPLACE " " ";" cflags_list ${CMAKE_C_FLAGS})
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
[mapping:libc]
|
[mapping:libc]
|
||||||
archive:
|
archive:
|
||||||
if NEWLIB_NANO_FORMAT = y:
|
if LIBC_NEWLIB_NANO_FORMAT = y:
|
||||||
libc_nano.a
|
libc_nano.a
|
||||||
else:
|
else:
|
||||||
libc.a
|
libc.a
|
||||||
|
Reference in New Issue
Block a user