summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2019-12-23 22:47:11 (GMT)
committerGitHub <noreply@github.com>2019-12-23 22:47:11 (GMT)
commitf8864925304e79997c863134e750c463a1d0e6b2 (patch)
tree53ac9832ef90a9585d4e0d6a44ce808e3b0cd2b0
parent6508480f29d267956daed2588963e27b3371542f (diff)
parentbb1d687e1d8a462b64fe2ae8ac6496e70b80111e (diff)
Merge pull request #1284 from stephanosio/newlib_retargetable_locking
Add newlib retargetable locking configuration
-rw-r--r--config/libc/newlib.in7
-rw-r--r--scripts/build/libc/newlib.sh1
2 files changed, 8 insertions, 0 deletions
diff --git a/config/libc/newlib.in b/config/libc/newlib.in
index 268f956..199eff2 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 95ab791..ef0b16c 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