diff --git a/CMakeLists.txt b/CMakeLists.txt index 90e0d4f40b195..561a9469b7689 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1057,6 +1057,9 @@ if(CONFIG_USERSPACE) if(CONFIG_NEWLIB_LIBC) set(NEWLIB_PART -l libc.a z_libc_partition) endif() + if(CONFIG_NEWLIB_LIBC_NANO) + set(NEWLIB_PART -l libc_nano.a z_libc_partition) + endif() if(CONFIG_MBEDTLS) set(MBEDTLS_PART -l lib..__modules__crypto__mbedtls.a k_mbedtls_partition) endif() diff --git a/tests/lib/mem_alloc/README.txt b/tests/lib/mem_alloc/README.txt index 40e7e375360dd..1e996cb81d60b 100644 --- a/tests/lib/mem_alloc/README.txt +++ b/tests/lib/mem_alloc/README.txt @@ -3,7 +3,7 @@ Standard Libraries Description: -This test verifies kernel access to the dynamic memory allocation funtions +This test verifies kernel access to the dynamic memory allocation functions provided by standard C libraries supported in Zephyr: NEWLIB and MINIMAL_LIB. It is intended to catch issues in which a library is completely absent @@ -23,7 +23,7 @@ on QEMU as follows: Troubleshooting: -Problems caused by out-dated project information can be addressed by +Problems caused by outdated project information can be addressed by issuing one of the following commands then rebuilding the project: make clean # discard results of previous builds diff --git a/tests/lib/mem_alloc/prj_newlibnano.conf b/tests/lib/mem_alloc/prj_newlibnano.conf index 2f301e7ae4b79..c7ee608b62722 100644 --- a/tests/lib/mem_alloc/prj_newlibnano.conf +++ b/tests/lib/mem_alloc/prj_newlibnano.conf @@ -1,3 +1,5 @@ CONFIG_ZTEST=y CONFIG_NEWLIB_LIBC=y CONFIG_NEWLIB_LIBC_NANO=y +CONFIG_NEWLIB_LIBC_ALIGNED_HEAP_SIZE=512 +CONFIG_TEST_USERSPACE=y