Skip to content

Commit 9281e78

Browse files
Lapshinespressif-bot
authored andcommitted
change(esp_libc): rename newlib component to esp_libc
1 parent aae5071 commit 9281e78

File tree

149 files changed

+127
-122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+127
-122
lines changed

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[codespell]
2-
skip = build,*.yuv,components/fatfs/src/*,alice.txt,*.rgb,components/wpa_supplicant/*,components/esp_wifi/*,*.pem,components/newlib/COPYING.*,docs/sphinx-known-warnings.txt
2+
skip = build,*.yuv,components/fatfs/src/*,alice.txt,*.rgb,components/wpa_supplicant/*,components/esp_wifi/*,*.pem,*/COPYING*,docs/sphinx-known-warnings.txt
33
ignore-words-list = ser,dout,rsource,fram,inout,shs,ans,aci,unstall,unstalling,hart,wheight,wel,ot,fane,assertIn,registr,oen,parms
44
write-changes = true

.gitlab/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
/components/esp_hw_support/lowpower/ @esp-idf-codeowners/power-management
104104
/components/esp_hw_support/usb_phy/ @esp-idf-codeowners/peripherals/usb
105105
/components/esp_lcd/ @esp-idf-codeowners/peripherals
106+
/components/esp_libc/ @esp-idf-codeowners/system @esp-idf-codeowners/toolchain
106107
/components/esp_local_ctrl/ @esp-idf-codeowners/app-utilities
107108
/components/esp_mm/ @esp-idf-codeowners/peripherals
108109
/components/esp_netif/ @esp-idf-codeowners/network
@@ -140,7 +141,6 @@
140141
/components/lwip/ @esp-idf-codeowners/lwip
141142
/components/mbedtls/ @esp-idf-codeowners/app-utilities/mbedtls @esp-idf-codeowners/security
142143
/components/mqtt/ @esp-idf-codeowners/network
143-
/components/newlib/ @esp-idf-codeowners/system @esp-idf-codeowners/toolchain
144144
/components/nvs_flash/ @esp-idf-codeowners/storage
145145
/components/nvs_sec_provider/ @esp-idf-codeowners/storage @esp-idf-codeowners/security
146146
/components/openthread/ @esp-idf-codeowners/ieee802154

.idf_build_apps.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ deactivate_dependency_driven_build_by_components = [
4848
'hal',
4949
'heap',
5050
'log',
51-
'newlib',
51+
'esp_libc',
5252
'riscv',
5353
'soc',
5454
'xtensa',

components/README.md

Lines changed: 3 additions & 3 deletions

components/bootloader/subproject/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ set(COMPONENTS
3131
micro-ecc
3232
main
3333
efuse
34-
esp_system
35-
newlib
34+
esp_libc
3635
esp_tee)
3736

3837
# EXTRA_COMPONENT_DIRS can be populated with directories containing one or several components.
@@ -61,7 +60,7 @@ endforeach()
6160
set(BOOTLOADER_BUILD 1)
6261
set(NON_OS_BUILD 1)
6362
include("${IDF_PATH}/tools/cmake/project.cmake")
64-
set(common_req log esp_rom esp_common esp_hw_support newlib)
63+
set(common_req log esp_rom esp_common esp_hw_support esp_libc)
6564
idf_build_set_property(EXTRA_COMPONENT_EXCLUDE_DIRS "${EXTRA_COMPONENT_EXCLUDE_DIRS}")
6665
idf_build_set_property(__COMPONENT_REQUIRES_COMMON "${common_req}")
6766
idf_build_set_property(__OUTPUT_SDKCONFIG 0)

components/cxx/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ if(NOT esp_tee_build)
7474
# Furthermore, force libcxx to appear later than libgcc because some libgcc unwind code is wrapped, if C++
7575
# exceptions are disabled. libcxx (this component) provides the unwind code wrappers.
7676
# This is to prevent linking of libgcc's unwind code which considerably increases the binary size.
77-
# Also force libnewlib to appear later than libstdc++ in link line since libstdc++ depends on
78-
# some functions in libnewlib, e.g. getentropy().
77+
# Also force esp_libc to appear later than libstdc++ in link line since libstdc++ depends on
78+
# some functions in esp_libc, e.g. getentropy().
7979
idf_component_get_property(pthread pthread COMPONENT_LIB)
80-
idf_component_get_property(newlib newlib COMPONENT_LIB)
80+
idf_component_get_property(esp_libc esp_libc COMPONENT_LIB)
8181

8282
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
83-
target_link_libraries(stdcpp_deps INTERFACE stdc++ c $<TARGET_FILE:${pthread}> $<TARGET_FILE:${newlib}>)
83+
target_link_libraries(stdcpp_deps INTERFACE stdc++ c $<TARGET_FILE:${pthread}> $<TARGET_FILE:${esp_libc}>)
8484
else()
85-
target_link_libraries(stdcpp_deps INTERFACE stdc++ $<TARGET_FILE:${pthread}> $<TARGET_FILE:${newlib}>)
85+
target_link_libraries(stdcpp_deps INTERFACE stdc++ $<TARGET_FILE:${pthread}> $<TARGET_FILE:${esp_libc}>)
8686
endif()
8787
endif()
8888

components/esp_driver_uart/src/uart_vfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ static ssize_t uart_write(int fd, const void * data, size_t size)
229229
tx_func_t tx_func = s_ctx[fd]->tx_func;
230230
esp_line_endings_t tx_mode = s_ctx[fd]->tx_mode;
231231
const char *data_c = (const char *)data;
232-
/* Even though newlib does stream locking on each individual stream, we need
232+
/* Even though libc does stream locking on each individual stream, we need
233233
* a dedicated UART lock if two streams (stdout and stderr) point to the
234234
* same UART.
235235
*/

components/newlib/CMakeLists.txt renamed to components/esp_libc/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ else()
6868
endif()
6969

7070
set(ldfragments "")
71-
list(APPEND ldfragments "src/newlib.lf" "src/system_libs.lf")
71+
list(APPEND ldfragments "src/esp_libc.lf" "src/system_libs.lf")
7272

7373
if(CONFIG_LIBC_NEWLIB)
7474
list(APPEND ldfragments src/libc.lf)
@@ -84,8 +84,8 @@ idf_component_register(SRCS "${srcs}"
8484
LDFRAGMENTS "${ldfragments}")
8585

8686
# Toolchain libraries require code defined in this component
87-
idf_component_get_property(newlib newlib COMPONENT_LIB)
88-
target_link_libraries(${COMPONENT_LIB} INTERFACE c m ${CONFIG_COMPILER_RT_LIB_NAME} "$<TARGET_FILE:${newlib}>")
87+
idf_component_get_property(esp_libc esp_libc COMPONENT_LIB)
88+
target_link_libraries(${COMPONENT_LIB} INTERFACE c m ${CONFIG_COMPILER_RT_LIB_NAME} "$<TARGET_FILE:${esp_libc}>")
8989

9090
set_source_files_properties(heap.c PROPERTIES COMPILE_FLAGS -fno-builtin)
9191

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)