2016-12-16 00:16:55 +08:00
|
|
|
# Kconfig - C library
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-12-16 00:16:55 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menu "C Library"
|
2017-12-22 08:26:00 +08:00
|
|
|
depends on !NATIVE_APPLICATION
|
2016-12-16 00:16:55 +08:00
|
|
|
|
|
|
|
config NEWLIB_LIBC
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "Build with newlib c library"
|
2016-12-16 00:16:55 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Build with newlib library. The newlib library is expected to be
|
|
|
|
part of the SDK in this case.
|
2016-12-16 00:16:55 +08:00
|
|
|
|
2018-05-10 07:36:44 +08:00
|
|
|
config NEWLIB_LIBC_ALIGNED_HEAP_SIZE
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Newlib aligned heap size"
|
2018-05-23 20:34:36 +08:00
|
|
|
depends on MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT
|
2018-05-10 07:36:44 +08:00
|
|
|
depends on NEWLIB_LIBC
|
|
|
|
depends on USERSPACE
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
If user mode is enabled, and MPU hardware has requirements that
|
|
|
|
regions be sized to a power of two and aligned to their size,
|
|
|
|
and user mode threads need to access this heap, then this is necessary
|
|
|
|
to properly define an MPU region for the heap.
|
|
|
|
|
|
|
|
If this is left at 0, then remaining system RAM will be used for this
|
|
|
|
area and it may not be possible to program it as an MPU region.
|
|
|
|
|
2016-12-16 00:16:55 +08:00
|
|
|
config NEWLIB_LIBC_FLOAT_PRINTF
|
|
|
|
bool "Build with newlib float printf"
|
|
|
|
depends on NEWLIB_LIBC
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Build with floating point printf enabled. This will increase the size of
|
|
|
|
the image.
|
2016-12-16 00:16:55 +08:00
|
|
|
|
|
|
|
config NEWLIB_LIBC_FLOAT_SCANF
|
|
|
|
bool "Build with newlib float scanf"
|
|
|
|
depends on NEWLIB_LIBC
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Build with floating point scanf enabled. This will increase the size of
|
|
|
|
the image.
|
2016-12-16 00:16:55 +08:00
|
|
|
|
2018-01-05 21:06:55 +08:00
|
|
|
config STDOUT_CONSOLE
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "Send stdout to console"
|
2018-01-05 21:06:55 +08:00
|
|
|
depends on CONSOLE_HAS_DRIVER
|
2018-06-22 09:54:05 +08:00
|
|
|
default NEWLIB_LIBC
|
2018-01-05 21:06:55 +08:00
|
|
|
help
|
|
|
|
This option directs standard output (e.g. printf) to the console
|
|
|
|
device, rather than suppressing it entirely. See also EARLY_CONSOLE
|
|
|
|
option.
|
|
|
|
|
2018-07-13 06:00:58 +08:00
|
|
|
# Minimal libc options
|
|
|
|
|
|
|
|
config MINIMAL_LIBC_MALLOC_ARENA_SIZE
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Size of the minimal libc malloc arena"
|
2018-07-13 06:00:58 +08:00
|
|
|
depends on !NEWLIB_LIBC
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Indicate the size of the memory arena used for minimal libc's
|
|
|
|
malloc() implementation. This size value must be compatible with
|
|
|
|
a sys_mem_pool definition with nmax of 1 and minsz of 16.
|
|
|
|
|
2016-12-16 00:16:55 +08:00
|
|
|
endmenu
|