|
| 1 | +From 968bf7d65812bba490c4222b3d05fa94cf856472 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Stephanos Ioannidis < [email protected]> |
| 3 | +Date: Fri, 20 Dec 2019 11:18:46 +0900 |
| 4 | +Subject: [PATCH 6/6] Add newlib retargetable locking configuration |
| 5 | + |
| 6 | +This commit adds support for the newlib configuration option |
| 7 | +'--enable-newlib-retargetable-locking'. |
| 8 | + |
| 9 | +Signed-off-by: Stephanos Ioannidis < [email protected]> |
| 10 | +--- |
| 11 | + config/libc/newlib.in | 14 ++++++++++++++ |
| 12 | + scripts/build/libc/newlib.sh | 1 + |
| 13 | + 2 files changed, 15 insertions(+) |
| 14 | + |
| 15 | +diff --git a/config/libc/newlib.in b/config/libc/newlib.in |
| 16 | +index bd193cd8..d84db70b 100644 |
| 17 | +--- a/config/libc/newlib.in |
| 18 | ++++ b/config/libc/newlib.in |
| 19 | +@@ -152,6 +152,13 @@ config LIBC_NEWLIB_MULTITHREAD |
| 20 | + help |
| 21 | + Enable support for multiple threads. |
| 22 | + |
| 23 | ++config LIBC_NEWLIB_RETARGETABLE_LOCKING |
| 24 | ++ bool |
| 25 | ++ prompt "Enable retargetable locking" |
| 26 | ++ help |
| 27 | ++ Enable retargetable locking to allow the operating system to override |
| 28 | ++ the dummy lock functions defined within the newlib. |
| 29 | ++ |
| 30 | + config LIBC_NEWLIB_EXTRA_SECTIONS |
| 31 | + bool |
| 32 | + prompt "Place each function & data element in their own section" |
| 33 | +@@ -355,6 +362,13 @@ config LIBC_NANO_NEWLIB_MULTITHREAD |
| 34 | + help |
| 35 | + Enable support for multiple threads. |
| 36 | + |
| 37 | ++config LIBC_NANO_NEWLIB_RETARGETABLE_LOCKING |
| 38 | ++ bool |
| 39 | ++ prompt "Enable retargetable locking" |
| 40 | ++ help |
| 41 | ++ Enable retargetable locking to allow the operating system to override |
| 42 | ++ the dummy lock functions defined within the newlib. |
| 43 | ++ |
| 44 | + config LIBC_NANO_NEWLIB_EXTRA_SECTIONS |
| 45 | + bool |
| 46 | + prompt "Place each function & data element in their own section" |
| 47 | +diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh |
| 48 | +index ca53c7f8..299698ac 100644 |
| 49 | +--- a/scripts/build/libc/newlib.sh |
| 50 | ++++ b/scripts/build/libc/newlib.sh |
| 51 | +@@ -220,6 +220,7 @@ GLOBAL_ATEXIT:newlib-global-atexit |
| 52 | + LITE_EXIT:lite-exit |
| 53 | + REENT_SMALL:newlib-reent-small |
| 54 | + MULTITHREAD:newlib-multithread |
| 55 | ++RETARGETABLE_LOCKING:newlib-retargetable-locking |
| 56 | + WIDE_ORIENT:newlib-wide-orient |
| 57 | + UNBUF_STREAM_OPT:newlib-unbuf-stream-opt |
| 58 | + ENABLE_TARGET_OPTSPACE:target-optspace |
| 59 | +-- |
| 60 | +2.17.1 |
| 61 | + |
0 commit comments