Skip to content

Commit 8dd0a72

Browse files
stephanosiogalak
authored andcommitted
riscv64: Enable newlib retargetable locking
This commit enables the newlib retargetable locking option to allow the Zephyr operating system to override the dummy lock functions defined within the newlib. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 69704c9 commit 8dd0a72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configs/riscv64.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
2020
CT_LIBC_NEWLIB_GLOBAL_ATEXIT=y
2121
CT_LIBC_NEWLIB_LITE_EXIT=y
2222
# CT_LIBC_NEWLIB_MULTITHREAD is not set
23+
CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y
2324
# CT_LIBC_NEWLIB_WIDE_ORIENT is not set
2425
# CT_LIBC_NEWLIB_NANO_MALLOC is not set
2526
# CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set
@@ -32,6 +33,7 @@ CT_LIBC_NANO_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
3233
CT_LIBC_NANO_NEWLIB_GLOBAL_ATEXIT=y
3334
CT_LIBC_NANO_NEWLIB_LITE_EXIT=y
3435
# CT_LIBC_NANO_NEWLIB_MULTITHREAD is not set
36+
CT_LIBC_NANO_NEWLIB_RETARGETABLE_LOCKING=y
3537
# CT_LIBC_NANO_NEWLIB_WIDE_ORIENT is not set
3638
CT_LIBC_NANO_NEWLIB_NANO_MALLOC=y
3739
CT_LIBC_NANO_NEWLIB_NANO_FORMATTED_IO=y

0 commit comments

Comments
 (0)