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:
parent
a9c62caab7
commit
4134858868
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue