From bb1d687e1d8a462b64fe2ae8ac6496e70b80111e Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Fri, 20 Dec 2019 11:18:46 +0900 Subject: [PATCH] Add newlib retargetable locking configuration This commit adds support for the newlib configuration option '--enable-newlib-retargetable-locking'. Signed-off-by: Stephanos Ioannidis --- config/libc/newlib.in | 7 +++++++ scripts/build/libc/newlib.sh | 1 + 2 files changed, 8 insertions(+) diff --git a/config/libc/newlib.in b/config/libc/newlib.in index 268f9564..199eff2a 100644 --- a/config/libc/newlib.in +++ b/config/libc/newlib.in @@ -152,6 +152,13 @@ config LIBC_NEWLIB_MULTITHREAD help Enable support for multiple threads. +config LIBC_NEWLIB_RETARGETABLE_LOCKING + bool + prompt "Enable retargetable locking" + help + Enable retargetable locking to allow the operating system to override + the dummy lock functions defined within the newlib. + config LIBC_NEWLIB_EXTRA_SECTIONS bool prompt "Place each function & data element in their own section" diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index 95ab7910..ef0b16c1 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -63,6 +63,7 @@ GLOBAL_ATEXIT:newlib-global-atexit LITE_EXIT:lite-exit REENT_SMALL:newlib-reent-small MULTITHREAD:newlib-multithread +RETARGETABLE_LOCKING:newlib-retargetable-locking WIDE_ORIENT:newlib-wide-orient UNBUF_STREAM_OPT:newlib-unbuf-stream-opt ENABLE_TARGET_OPTSPACE:target-optspace