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>
This commit is contained in:
Keith Packard 2023-03-29 16:31:20 -07:00 committed by Stephanos Ioannidis
parent a9c62caab7
commit 4134858868
15 changed files with 16 additions and 16 deletions

View file

@ -16,7 +16,7 @@ config TEST_LIB_HASH_MAP_MAX_ENTRIES
heap memory. For test scenarios using the Minimal C library, the heap
size is controlled via
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE
For native_posix_64, the number of entries can be configured
independently of the arena size since the native libc is used.

View file

@ -6,7 +6,7 @@ CONFIG_BOOT_BANNER=n
CONFIG_LOG=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192
CONFIG_NEWLIB_LIBC_MIN_REQUIRED_HEAP_SIZE=8192
CONFIG_PICOLIBC_HEAP_SIZE=8192

View file

@ -80,7 +80,7 @@ CONFIG_ISR_STACK_SIZE=1024
# Disable features not needed
CONFIG_TIMESLICING=n
CONFIG_MINIMAL_LIBC_MALLOC=n
CONFIG_COMMON_LIBC_MALLOC=n
CONFIG_LOG=n
CONFIG_ASSERT=n

View file

@ -1,3 +1,3 @@
CONFIG_CPP=y
CONFIG_CPP_MAIN=y
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=128
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=128

View file

@ -2,9 +2,9 @@
CONFIG_MAIN_STACK_SIZE=4096
# C Library
# Default use minimal libc and with MINIMAL_LIBC_MALLOC_ARENA_SIZE defining
# Default use minimal libc and with COMMON_LIBC_MALLOC_ARENA_SIZE defining
# HEAP size (512 bytes) are enough to run DNS.
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=4096
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=4096
# Networking config
CONFIG_NETWORKING=y

View file

@ -11,7 +11,7 @@ CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_STM32_QSPI=y
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192
# Littlefs configuration to utilize QSPI operation
CONFIG_FS_LITTLEFS_CACHE_SIZE=256

View file

@ -4,6 +4,6 @@
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192
CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192

View file

@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192
CONFIG_DISK_ACCESS=y
CONFIG_DISK_DRIVERS=y

View file

@ -2,7 +2,7 @@ CONFIG_CPP=y
CONFIG_NET_BUF=y
CONFIG_ZTEST=y
CONFIG_ZTEST_STACK_SIZE=2048
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=128
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=128
CONFIG_ZTEST_NEW_API=y
CONFIG_CRC=y

View file

@ -16,7 +16,7 @@ config TEST_LIB_HASH_MAP_MAX_ENTRIES
heap memory. For test scenarios using the Minimal C library, the heap
size is controlled via
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE
For native_posix_64, the number of entries can be configured
independently of the arena size since the native libc is used.

View file

@ -5,7 +5,7 @@
CONFIG_ZTEST=y
CONFIG_ZTEST_NEW_API=y
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192
CONFIG_NEWLIB_LIBC_MIN_REQUIRED_HEAP_SIZE=8192
CONFIG_PICOLIBC_HEAP_SIZE=8192

View file

@ -1,4 +1,4 @@
CONFIG_ZTEST=y
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=2048
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=2048
CONFIG_TEST_USERSPACE=y
CONFIG_ZTEST_NEW_API=y

View file

@ -1,4 +1,4 @@
CONFIG_ZTEST=y
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=0
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0
CONFIG_TEST_USERSPACE=y
CONFIG_ZTEST_NEW_API=y

View file

@ -56,7 +56,7 @@ union aligntest {
};
#if defined(CONFIG_MINIMAL_LIBC) && (CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE == 0)
#if defined(CONFIG_MINIMAL_LIBC) && (CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE == 0)
__no_optimization void _test_no_mem_malloc(void)
{
int *iptr = NULL;

View file

@ -5,7 +5,7 @@ CONFIG_ZTEST_NEW_API=y
CONFIG_MAIN_STACK_SIZE=4096
# Performance tests need custom buffer allocation
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192
# FS abstraction layer is noisy so it's off. Turn it on to see the
# littlefs configuration parameters.