From 929e027500188ee1857b41c7b652ea0cdbc28b1d Mon Sep 17 00:00:00 2001 From: Bryan Hundven Date: Wed, 13 Jan 2016 06:22:18 -0800 Subject: newlib: add option to enable nano malloc Signed-off-by: Bryan Hundven --- config/libc/newlib.in.2 | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'config/libc') diff --git a/config/libc/newlib.in.2 b/config/libc/newlib.in.2 index b16b23a8..ed355668 100644 --- a/config/libc/newlib.in.2 +++ b/config/libc/newlib.in.2 @@ -44,6 +44,17 @@ config LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE This will compile newlib with -Os. +config LIBC_NEWLIB_NANO_MALLOC + bool + prompt "Enable Nano Malloc" + depends on LIBC_NEWLIB_2_1_or_later + help + NEWLIB has two implementations of malloc family's functions, one in + `mallocr.c' and the other one in `nano-mallocr.c'. This options + enables the nano-malloc implementation, which is for small systems + with very limited memory. Note that this implementation does not + support `--enable-malloc-debugging' any more. + config LIBC_NEWLIB_EXTRA_CONFIG_ARRAY string prompt "Extra config for newlib" -- cgit v1.2.3