cmake: copy globals from libc_nano.a to z_libc_partition
When building with NEWLIB_LIBC_NANO we need to copy the globals from libc_nano.a into application memory partition z_libc_partition, exactly as we do for libc.a globals. This is required so that these globals are accessible by nPRIV code, when building with user mode support. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
e7fe10b1c7
commit
d58f8bee79
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue