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 --- scripts/build/libc/newlib.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index 641ba953..1b0737e1 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -96,6 +96,9 @@ do_libc() { else newlib_opts+=( "--enable-newlib-supplied-syscalls" ) fi + if [ "${CT_LIBC_NEWLIB_NANO_MALLOC}" = "y" ]; then + newlib_opts+=( "--enable-newlib-nano-malloc" ) + fi [ "${CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE}" = "y" ] && newlib_opts+=("--enable-target-optspace") -- cgit v1.2.3