2012-04-06 23:49:35 +08:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2012-04-07 00:45:52 +08:00
|
|
|
# see misc/tools/kconfig-language.txt.
|
2012-04-06 23:49:35 +08:00
|
|
|
#
|
2012-04-11 07:49:13 +08:00
|
|
|
|
|
|
|
config STDIO_BUFFER_SIZE
|
|
|
|
int "C STDIO buffer size"
|
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Size of buffers using within the C buffered I/O interfaces.
|
|
|
|
(printf, putchar, fwrite, etc.).
|
|
|
|
|
|
|
|
config STDIO_LINEBUFFER
|
|
|
|
bool "STDIO line buffering"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Flush buffer I/O whenever a newline character is found in
|
|
|
|
the output data stream.
|
|
|
|
|
2012-04-12 01:13:04 +08:00
|
|
|
config NUNGET_CHARS
|
|
|
|
int "Number unget() characters"
|
|
|
|
default 2
|
|
|
|
---help---
|
|
|
|
Number of characters that can be buffered by ungetc() (Only if NFILE_STREAMS > 0)
|
|
|
|
|
2012-08-29 03:01:14 +08:00
|
|
|
config LIB_HOMEDIR
|
2012-04-11 07:49:13 +08:00
|
|
|
string "Home directory"
|
|
|
|
default "/"
|
|
|
|
depends on !DISABLE_ENVIRON
|
|
|
|
---help---
|
|
|
|
The home directory to use with operations like such as 'cd ~'
|
|
|
|
|
2012-10-29 02:42:09 +08:00
|
|
|
source lib/math/Kconfig
|
2012-04-07 22:50:57 +08:00
|
|
|
|
|
|
|
config NOPRINTF_FIELDWIDTH
|
2012-04-11 07:49:13 +08:00
|
|
|
bool "Disable sprintf support fieldwidth"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
sprintf-related logic is a
|
|
|
|
little smaller if we do not support fieldwidthes
|
|
|
|
|
|
|
|
config LIBC_FLOATINGPOINT
|
2012-04-11 07:49:13 +08:00
|
|
|
bool "Enable floating point in printf"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
By default, floating point
|
|
|
|
support in printf, sscanf, etc. is disabled.
|
|
|
|
|
2012-09-08 21:56:21 +08:00
|
|
|
choice
|
|
|
|
prompt "Newline Options"
|
|
|
|
default EOL_IS_EITHER_CRLF
|
|
|
|
---help---
|
|
|
|
This selection determines the line terminating character that is used.
|
|
|
|
Some environments may return CR as end-of-line, others LF, and others
|
|
|
|
both. If not specified, the default is either CR or LF (but not both)
|
|
|
|
as the line terminating charactor.
|
|
|
|
|
|
|
|
config EOL_IS_CR
|
|
|
|
bool "EOL is CR"
|
|
|
|
|
|
|
|
config EOL_IS_LF
|
|
|
|
bool "EOL is LF"
|
|
|
|
|
|
|
|
config EOL_IS_BOTH_CRLF
|
|
|
|
bool "EOL is CR and LF"
|
|
|
|
|
|
|
|
config EOL_IS_EITHER_CRLF
|
|
|
|
bool "EOL is CR or LF"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2012-08-29 03:01:14 +08:00
|
|
|
config LIBC_STRERROR
|
|
|
|
bool "Enable strerror"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
strerror() is useful because it decodes 'errno' values into a human readable
|
|
|
|
strings. But it can also require a lot of memory. If this option is selected,
|
|
|
|
strerror() will still exist in the build but it will not decode error values.
|
|
|
|
This option should be used by other logic to decide if it should use strerror()
|
|
|
|
or not. For example, the NSH application will not use strerror() if this
|
|
|
|
option is not selected; perror() will not use strerror() is this option is not
|
|
|
|
selected (see also NSH_STRERROR).
|
|
|
|
|
|
|
|
config LIBC_STRERROR_SHORT
|
|
|
|
bool "Use short error descriptions in strerror()"
|
|
|
|
default n
|
|
|
|
depends on LIBC_STRERROR
|
|
|
|
---help---
|
|
|
|
If this option is selected, then strerror() will use a shortened string when
|
|
|
|
it decodes the error. Specifically, strerror() is simply use the string that
|
|
|
|
is the common name for the error. For example, the 'errno' value of 2 will
|
|
|
|
produce the string "No such file or directory" is LIBC_STRERROR_SHORT
|
|
|
|
is not defined but the string "ENOENT" is LIBC_STRERROR_SHORT is defined.
|
|
|
|
|
|
|
|
config LIBC_PERROR_STDOUT
|
|
|
|
bool "perror() to stdout"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
POSIX requires that perror() provide its output on stderr. This option may
|
|
|
|
be defined, however, to provide perror() output that is serialized with
|
|
|
|
other stdout messages.
|
|
|
|
|
2012-04-07 22:50:57 +08:00
|
|
|
config ARCH_LOWPUTC
|
2012-04-11 07:49:13 +08:00
|
|
|
bool "Low-level console output"
|
2012-04-07 22:50:57 +08:00
|
|
|
default "y"
|
|
|
|
---help---
|
2012-09-05 21:18:14 +08:00
|
|
|
architecture supports low-level, boot time console output
|
2012-09-05 07:59:24 +08:00
|
|
|
|
|
|
|
config LIB_SENDFILE_BUFSIZE
|
|
|
|
int "sendfile() buffer size"
|
|
|
|
default 512
|
|
|
|
---help---
|
2012-09-05 21:18:14 +08:00
|
|
|
Size of the I/O buffer to allocate in sendfile(). Default: 512b
|
2012-09-05 07:59:24 +08:00
|
|
|
|
2012-09-05 21:18:14 +08:00
|
|
|
config ARCH_ROMGETC
|
|
|
|
bool "Support for ROM string access"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
In Harvard architectures, data accesses and instruction accesses
|
|
|
|
occur on different busses, perhaps concurrently. All data accesses
|
|
|
|
are performed on the data bus unless special machine instructions
|
|
|
|
are used to read data from the instruction address space. Also, in
|
|
|
|
the typical MCU, the available SRAM data memory is much smaller that
|
|
|
|
the non-volatile FLASH instruction memory. So if the application
|
|
|
|
requires many constant strings, the only practical solution may be
|
|
|
|
to store those constant strings in FLASH memory where they can only
|
|
|
|
be accessed using architecture-specific machine instructions.
|
|
|
|
|
|
|
|
If ARCH_ROMGETC is defined, then the architecture logic must export
|
|
|
|
the function up_romgetc(). up_romgetc() will simply read one byte
|
|
|
|
of data from the instruction space.
|
|
|
|
|
|
|
|
If ARCH_ROMGETC, certain C stdio functions are effected: (1) All
|
|
|
|
format strings in printf, fprintf, sprintf, etc. are assumed to lie
|
|
|
|
in FLASH (string arguments for %s are still assumed to reside in SRAM).
|
|
|
|
And (2), the string argument to puts and fputs is assumed to reside
|
|
|
|
in FLASH. Clearly, these assumptions may have to modified for the
|
|
|
|
particular needs of your environment. There is no "one-size-fits-all"
|
|
|
|
solution for this problem.
|
|
|
|
|
|
|
|
config ARCH_OPTIMIZED_FUNCTIONS
|
2012-04-11 07:49:13 +08:00
|
|
|
bool "Enable arch optimized functions"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
|
|
|
---help---
|
2012-09-05 21:18:14 +08:00
|
|
|
Allow for architecture optimized implementations of certain library
|
|
|
|
functions. Architecture-specific implementations can improve overall
|
|
|
|
system performance.
|
2012-04-07 22:50:57 +08:00
|
|
|
|
2012-09-05 21:18:14 +08:00
|
|
|
if ARCH_OPTIMIZED_FUNCTIONS
|
2012-04-07 22:50:57 +08:00
|
|
|
config ARCH_MEMCPY
|
2012-10-21 08:41:44 +08:00
|
|
|
bool "memcpy()"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
2012-10-21 04:59:44 +08:00
|
|
|
---help---
|
|
|
|
Select this option if the architecture provides an optimized version
|
|
|
|
of memcpy().
|
|
|
|
|
|
|
|
config MEMCPY_VIK
|
2012-10-21 08:41:44 +08:00
|
|
|
bool "Vik memcpy()"
|
2012-10-21 04:59:44 +08:00
|
|
|
default n
|
|
|
|
depends on !ARCH_MEMCPY
|
|
|
|
---help---
|
2012-10-21 08:41:44 +08:00
|
|
|
Select this option to use the optimized memcpy() function by Daniel Vik.
|
2012-10-21 13:38:24 +08:00
|
|
|
Select this option for improved performance at the expense of increased
|
|
|
|
size. See licensing information in the top-level COPYING file.
|
2012-10-21 04:59:44 +08:00
|
|
|
|
|
|
|
if MEMCPY_VIK
|
|
|
|
config MEMCPY_PRE_INC_PTRS
|
|
|
|
bool "Pre-increment pointers"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Use pre-increment of pointers. Default is post increment of pointers.
|
|
|
|
|
|
|
|
config MEMCPY_INDEXED_COPY
|
|
|
|
bool "Array indexing"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Copying data using array indexing. Using this option, disables the
|
|
|
|
MEMCPY_PRE_INC_PTRS option.
|
|
|
|
|
|
|
|
config MEMCPY_64BIT
|
2012-10-21 08:41:44 +08:00
|
|
|
bool "64-bit memcpy()"
|
2012-10-21 04:59:44 +08:00
|
|
|
default n
|
|
|
|
---help---
|
2012-10-21 13:38:24 +08:00
|
|
|
Compiles memcpy() for architectures that suppport 64-bit operations
|
|
|
|
efficiently.
|
2012-10-21 04:59:44 +08:00
|
|
|
|
|
|
|
endif
|
2012-04-07 22:50:57 +08:00
|
|
|
|
|
|
|
config ARCH_MEMCMP
|
2012-10-21 08:41:44 +08:00
|
|
|
bool "memcmp()"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
2012-10-21 04:59:44 +08:00
|
|
|
---help---
|
|
|
|
Select this option if the architecture provides an optimized version
|
|
|
|
of memcmp().
|
2012-04-07 22:50:57 +08:00
|
|
|
|
|
|
|
config ARCH_MEMMOVE
|
2012-10-21 08:41:44 +08:00
|
|
|
bool "memmove()"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
2012-10-21 04:59:44 +08:00
|
|
|
---help---
|
|
|
|
Select this option if the architecture provides an optimized version
|
|
|
|
of memmove().
|
2012-04-11 07:49:13 +08:00
|
|
|
|
2012-04-07 22:50:57 +08:00
|
|
|
config ARCH_MEMSET
|
2012-10-21 08:41:44 +08:00
|
|
|
bool "memset()"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
2012-10-21 04:59:44 +08:00
|
|
|
---help---
|
|
|
|
Select this option if the architecture provides an optimized version
|
|
|
|
of memset().
|
2012-04-11 07:49:13 +08:00
|
|
|
|
2012-10-21 08:41:44 +08:00
|
|
|
config MEMSET_OPTSPEED
|
|
|
|
bool "Optimize memset() for speed"
|
|
|
|
default n
|
|
|
|
depends on !ARCH_MEMSET
|
|
|
|
---help---
|
|
|
|
Select this option to use a version of memcpy() optimized for speed.
|
|
|
|
Default: memcpy() is optimized for size.
|
|
|
|
|
2012-10-21 09:31:56 +08:00
|
|
|
config MEMSET_64BIT
|
|
|
|
bool "64-bit memset()"
|
|
|
|
default n
|
|
|
|
depends on MEMSET_OPTSPEED
|
|
|
|
---help---
|
2012-10-21 13:38:24 +08:00
|
|
|
Compiles memset() for architectures that suppport 64-bit operations
|
|
|
|
efficiently.
|
2012-10-21 09:31:56 +08:00
|
|
|
|
2012-04-07 22:50:57 +08:00
|
|
|
config ARCH_STRCMP
|
2012-10-21 08:41:44 +08:00
|
|
|
bool "strcmp()"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
2012-10-21 04:59:44 +08:00
|
|
|
---help---
|
|
|
|
Select this option if the architecture provides an optimized version
|
|
|
|
of strcmp().
|
2012-04-11 07:49:13 +08:00
|
|
|
|
2012-04-07 22:50:57 +08:00
|
|
|
config ARCH_STRCPY
|
2012-10-21 08:41:44 +08:00
|
|
|
bool "strcpy()"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
2012-10-21 04:59:44 +08:00
|
|
|
---help---
|
|
|
|
Select this option if the architecture provides an optimized version
|
|
|
|
of strcpy().
|
2012-04-11 07:49:13 +08:00
|
|
|
|
2012-04-07 22:50:57 +08:00
|
|
|
config ARCH_STRNCPY
|
2012-10-21 08:41:44 +08:00
|
|
|
bool "strncpy()"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
2012-10-21 04:59:44 +08:00
|
|
|
---help---
|
|
|
|
Select this option if the architecture provides an optimized version
|
|
|
|
of strncpy().
|
2012-04-11 07:49:13 +08:00
|
|
|
|
2012-04-07 22:50:57 +08:00
|
|
|
config ARCH_STRLEN
|
|
|
|
bool "strlen"
|
|
|
|
default n
|
2012-10-21 04:59:44 +08:00
|
|
|
---help---
|
|
|
|
Select this option if the architecture provides an optimized version
|
|
|
|
of strlen().
|
2012-04-11 07:49:13 +08:00
|
|
|
|
2012-04-07 22:50:57 +08:00
|
|
|
config ARCH_STRNLEN
|
2012-10-21 08:41:44 +08:00
|
|
|
bool "strlen()"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
2012-10-21 04:59:44 +08:00
|
|
|
---help---
|
|
|
|
Select this option if the architecture provides an optimized version
|
|
|
|
of strnlen().
|
2012-04-11 07:49:13 +08:00
|
|
|
|
2012-04-07 22:50:57 +08:00
|
|
|
config ARCH_BZERO
|
2012-10-21 08:41:44 +08:00
|
|
|
bool "bzero()"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
2012-10-21 04:59:44 +08:00
|
|
|
---help---
|
|
|
|
Select this option if the architecture provides an optimized version
|
|
|
|
of bzero().
|
|
|
|
|
2012-04-07 22:50:57 +08:00
|
|
|
endif
|