summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2021-01-12 06:42:26 (GMT)
committerKeith Packard <keithp@keithp.com>2021-01-12 06:45:01 (GMT)
commit74949b1d3578873af031f9ad67a8fdb571c5f1bc (patch)
treead1d15e2f647d6d307ee0055c11ce74ae53e05a9 /config
parentf7c033cd109c3eaf2d328d407855b272f74c1438 (diff)
picolibc: Clean up configuration a bit
Use LIBC_PICOLIBC_CXA_ATEXIT to keep this name in the same 'namespace' as the other picolibc config names. Enable retargetable locking by default. This allows the few locks in picolibc to be implemented by the execution environment, rather than disabling the locking code. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'config')
-rw-r--r--config/comp_libs/picolibc.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/comp_libs/picolibc.in b/config/comp_libs/picolibc.in
index a3f07d6..62ab22b 100644
--- a/config/comp_libs/picolibc.in
+++ b/config/comp_libs/picolibc.in
@@ -10,7 +10,7 @@
## help conglomeration of several library parts, all under BSD-compatible software
## help licenses that make them easily usable on embedded products.
-config PICOLIBC_CXA_ATEXIT
+config LIBC_PICOLIBC_CXA_ATEXIT
def_bool y
select LIBC_PROVIDES_CXA_ATEXIT
@@ -72,6 +72,7 @@ config LIBC_PICOLIBC_MULTITHREAD
config LIBC_PICOLIBC_RETARGETABLE_LOCKING
bool
prompt "Enable retargetable locking"
+ default y
help
Enable retargetable locking to allow the operating system to override
the dummy lock functions defined within picolibc.