Skip to content

Commit 4134858

Browse files
keith-packardstephanosio
authored andcommitted
tests/samples: Replace minimal libc malloc configs with common ones
With the minimal C library malloc implementation moving to libc/common, all of the related Kconfig variables have also changed. Update uses within the tree. Signed-off-by: Keith Packard <keithp@keithp.com>
1 parent a9c62ca commit 4134858

File tree

15 files changed

+16
-16
lines changed

15 files changed

+16
-16
lines changed

samples/basic/hash_map/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ config TEST_LIB_HASH_MAP_MAX_ENTRIES
1616
heap memory. For test scenarios using the Minimal C library, the heap
1717
size is controlled via
1818

19-
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE
19+
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE
2020

2121
For native_posix_64, the number of entries can be configured
2222
independently of the arena size since the native libc is used.

samples/basic/hash_map/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CONFIG_BOOT_BANNER=n
66
CONFIG_LOG=y
77

88
CONFIG_TEST_RANDOM_GENERATOR=y
9-
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
9+
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192
1010
CONFIG_NEWLIB_LIBC_MIN_REQUIRED_HEAP_SIZE=8192
1111
CONFIG_PICOLIBC_HEAP_SIZE=8192
1212

samples/bluetooth/peripheral_hr/prj_minimal.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ CONFIG_ISR_STACK_SIZE=1024
8080

8181
# Disable features not needed
8282
CONFIG_TIMESLICING=n
83-
CONFIG_MINIMAL_LIBC_MALLOC=n
83+
CONFIG_COMMON_LIBC_MALLOC=n
8484
CONFIG_LOG=n
8585
CONFIG_ASSERT=n
8686

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
CONFIG_CPP=y
22
CONFIG_CPP_MAIN=y
3-
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=128
3+
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=128

samples/net/cloud/tagoio_http_post/prj.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
CONFIG_MAIN_STACK_SIZE=4096
33

44
# C Library
5-
# Default use minimal libc and with MINIMAL_LIBC_MALLOC_ARENA_SIZE defining
5+
# Default use minimal libc and with COMMON_LIBC_MALLOC_ARENA_SIZE defining
66
# HEAP size (512 bytes) are enough to run DNS.
7-
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=4096
7+
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=4096
88

99
# Networking config
1010
CONFIG_NETWORKING=y

samples/subsys/fs/littlefs/boards/nucleo_h743zi.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CONFIG_FLASH_MAP=y
1111
CONFIG_FLASH_PAGE_LAYOUT=y
1212
CONFIG_FLASH_STM32_QSPI=y
1313

14-
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
14+
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192
1515

1616
# Littlefs configuration to utilize QSPI operation
1717
CONFIG_FS_LITTLEFS_CACHE_SIZE=256

samples/subsys/fs/littlefs/boards/nucleo_h743zi_blk.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66
CONFIG_MAIN_STACK_SIZE=2048
7-
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
7+
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192
88

99
CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192

samples/subsys/usb/mass/boards/stm32l562e_dk_ns.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66
CONFIG_MAIN_STACK_SIZE=2048
7-
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
7+
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192
88

99
CONFIG_DISK_ACCESS=y
1010
CONFIG_DISK_DRIVERS=y

tests/lib/cpp/cxx/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CONFIG_CPP=y
22
CONFIG_NET_BUF=y
33
CONFIG_ZTEST=y
44
CONFIG_ZTEST_STACK_SIZE=2048
5-
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=128
5+
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=128
66
CONFIG_ZTEST_NEW_API=y
77
CONFIG_CRC=y
88

tests/lib/hash_map/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ config TEST_LIB_HASH_MAP_MAX_ENTRIES
1616
heap memory. For test scenarios using the Minimal C library, the heap
1717
size is controlled via
1818

19-
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE
19+
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE
2020

2121
For native_posix_64, the number of entries can be configured
2222
independently of the arena size since the native libc is used.

0 commit comments

Comments
 (0)