mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-30 17:46:57 +00:00
newlib: add option to enable nano malloc
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
This commit is contained in:
parent
9d5fc3fd9b
commit
929e027500
@ -44,6 +44,17 @@ config LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE
|
|||||||
|
|
||||||
This will compile newlib with -Os.
|
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
|
config LIBC_NEWLIB_EXTRA_CONFIG_ARRAY
|
||||||
string
|
string
|
||||||
prompt "Extra config for newlib"
|
prompt "Extra config for newlib"
|
||||||
|
@ -96,6 +96,9 @@ do_libc() {
|
|||||||
else
|
else
|
||||||
newlib_opts+=( "--enable-newlib-supplied-syscalls" )
|
newlib_opts+=( "--enable-newlib-supplied-syscalls" )
|
||||||
fi
|
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")
|
[ "${CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE}" = "y" ] && newlib_opts+=("--enable-target-optspace")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user