2015-05-21 00:40:39 +08:00
|
|
|
# Kconfig - miscellany configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
|
|
|
#
|
2015-10-07 00:00:37 +08:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
2015-10-07 00:00:37 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
2015-10-07 00:00:37 +08:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
|
|
|
|
2015-05-26 22:29:50 +08:00
|
|
|
|
2015-08-22 07:16:58 +08:00
|
|
|
menu "Cryptography"
|
|
|
|
source "lib/crypto/tinycrypt/Kconfig"
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Compile and Link Features"
|
|
|
|
|
2015-07-09 23:32:11 +08:00
|
|
|
config KERNEL_BIN_NAME
|
|
|
|
string "The kernel binary name"
|
2015-10-03 20:42:16 +08:00
|
|
|
default "zephyr"
|
|
|
|
help
|
|
|
|
This option sets the name of the generated kernel binary.
|
2015-09-04 21:38:47 +08:00
|
|
|
|
2015-10-02 05:31:31 +08:00
|
|
|
|
|
|
|
config HAVE_CUSTOM_LINKER_SCRIPT
|
|
|
|
prompt "Custom linker scripts provided"
|
|
|
|
def_bool n
|
|
|
|
help
|
|
|
|
Set this option if you have a custom linker script which needed to
|
|
|
|
be define in CUSTOM_LINKER_SCRIPT.
|
|
|
|
|
|
|
|
config CUSTOM_LINKER_SCRIPT
|
|
|
|
string "Path to custom linker script"
|
|
|
|
default ""
|
|
|
|
depends on HAVE_CUSTOM_LINKER_SCRIPT
|
|
|
|
help
|
|
|
|
Path to the linker script to be used instead of the one define by the
|
|
|
|
platform.
|
|
|
|
|
|
|
|
The linker script must be based on a version provided by Zephyr since
|
|
|
|
the kernel can expect a certain layout/certain regions.
|
|
|
|
|
|
|
|
This is useful when an application needs to add sections into the
|
|
|
|
linker script and avoid having to change the script provided by
|
|
|
|
Zephyr.
|
|
|
|
|
2015-09-04 21:38:47 +08:00
|
|
|
config CROSS_COMPILE
|
|
|
|
string "Cross-compiler tool prefix"
|
2015-07-29 21:33:32 +08:00
|
|
|
help
|
2015-09-04 21:38:47 +08:00
|
|
|
Same as running 'make CROSS_COMPILE=prefix-' but stored for
|
|
|
|
default make runs in this kernel build directory. You don't
|
|
|
|
need to set this unless you want the configured kernel build
|
|
|
|
directory to select the cross-compiler automatically.
|
2015-07-29 21:33:32 +08:00
|
|
|
|
2015-08-29 18:42:33 +08:00
|
|
|
config GDB_INFO
|
|
|
|
bool
|
|
|
|
prompt "Task-aware debugging with GDB"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables the kernel to collect additional information
|
|
|
|
during interrupts, exceptions, and context switches. This information
|
|
|
|
is required for task-aware debugging with GDB.
|
|
|
|
|
2015-08-19 19:32:21 +08:00
|
|
|
config LINK_WHOLE_ARCHIVE
|
|
|
|
bool "Allow linking with --whole-archive"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This options allows linking external libraries with the
|
|
|
|
--whole-archive option to keep all symbols.
|
2015-08-29 18:42:33 +08:00
|
|
|
|
2015-05-26 22:29:50 +08:00
|
|
|
config COMPILER_OPT
|
|
|
|
string
|
|
|
|
prompt "Custom compiler options"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
This option is a free-form string that is passed to the compiler
|
2015-09-29 22:08:58 +08:00
|
|
|
when building all parts of a project (i.e. kernel).
|
2015-05-26 22:29:50 +08:00
|
|
|
The compiler options specified by this string supplement the
|
|
|
|
pre-defined set of compiler supplied by the build system,
|
|
|
|
and can be used to change compiler optimization, warning and error
|
|
|
|
messages, and so on.
|
|
|
|
|
2015-08-08 08:33:03 +08:00
|
|
|
config TOOLCHAIN_VARIANT
|
|
|
|
string "Cross-compiler variant name"
|
|
|
|
help
|
|
|
|
For optimized compilers with reduced features, specify the name
|
|
|
|
of the variant.
|
|
|
|
|
2015-08-12 23:49:10 +08:00
|
|
|
choice
|
|
|
|
prompt "C Library"
|
|
|
|
default MINIMAL_LIBC
|
|
|
|
|
2015-05-26 22:29:50 +08:00
|
|
|
config MINIMAL_LIBC
|
|
|
|
bool
|
|
|
|
prompt "Build minimal c library"
|
|
|
|
help
|
2015-08-12 23:49:10 +08:00
|
|
|
Build integrated minimal c library. This integrated library is available
|
|
|
|
to support kernel functionality and test cases. It is not designed to be
|
|
|
|
used with applications. For applications, please use an external C
|
|
|
|
library such as newlib.
|
2015-05-26 22:29:50 +08:00
|
|
|
|
2015-08-12 23:49:10 +08:00
|
|
|
config NEWLIB_LIBC
|
2015-05-26 22:29:50 +08:00
|
|
|
bool
|
|
|
|
prompt "Build with newlib c library"
|
|
|
|
help
|
|
|
|
Build with newlib library. The newlib library is expected to be
|
|
|
|
part of the SDK in this case.
|
2015-08-12 23:49:10 +08:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2015-09-16 06:20:38 +08:00
|
|
|
|
|
|
|
config MINIMAL_LIBC_EXTENDED
|
2015-09-29 22:08:58 +08:00
|
|
|
bool "Build additional libc functions [EXPERIMENTAL]"
|
2015-09-16 06:20:38 +08:00
|
|
|
default n
|
2015-09-29 22:08:58 +08:00
|
|
|
depends on MINIMAL_LIBC
|
2015-09-16 06:20:38 +08:00
|
|
|
help
|
|
|
|
This option enables building some optional libc functions that
|
|
|
|
are not used directly by the kernel but can be used in applications.
|
|
|
|
The option adds the following functions: strtoul, strtol, atoi,
|
|
|
|
strncasecmp.
|
|
|
|
Warning: Use the above functions only for testing, if you need to
|
|
|
|
use any of the functions in an application you probably should be
|
|
|
|
linking against a full lib c implementation instead.
|
|
|
|
|
2015-05-26 22:29:50 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Debugging Options"
|
|
|
|
|
2015-09-04 21:38:47 +08:00
|
|
|
config DEBUG
|
|
|
|
bool "Build kernel with debugging enabled"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Build a kernel suitable for debugging. Right now, this option
|
|
|
|
only disables optimization, more debugging variants can be selected
|
|
|
|
from here to allow more debugging.
|
|
|
|
|
2015-06-20 22:46:15 +08:00
|
|
|
config PRINTK
|
|
|
|
bool
|
|
|
|
prompt "Send printk() to console"
|
2015-09-19 01:15:51 +08:00
|
|
|
depends on CONSOLE_HAS_DRIVER
|
2015-06-20 22:46:15 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
This option directs printk() debugging output to the supported
|
2015-09-19 01:15:51 +08:00
|
|
|
console device, rather than suppressing the generation
|
2015-06-20 22:46:15 +08:00
|
|
|
of printk() output entirely. Output is sent immediately, without
|
|
|
|
any mutual exclusion or buffering.
|
|
|
|
|
2015-05-26 22:29:50 +08:00
|
|
|
config STDOUT_CONSOLE
|
|
|
|
bool
|
|
|
|
prompt "Send stdout to console"
|
2015-09-19 01:15:51 +08:00
|
|
|
depends on CONSOLE_HAS_DRIVER
|
2015-05-26 22:29:50 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option directs standard output (e.g. printf) to the console
|
2015-09-04 21:38:47 +08:00
|
|
|
device, rather than suppressing it entirely.
|
2015-05-26 22:29:50 +08:00
|
|
|
|
2015-08-31 17:45:13 +08:00
|
|
|
config EARLY_CONSOLE
|
|
|
|
bool
|
|
|
|
prompt "Send stdout at the earliest stage possible"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option will enable stdout as early as possible, for debugging
|
|
|
|
purpose. For instance, in case of STDOUT_CONSOLE being set it will
|
|
|
|
initialize its driver earlier than normal, in order to get the stdout
|
|
|
|
sent through the console at the earliest stage possible.
|
|
|
|
|
2015-05-26 22:29:50 +08:00
|
|
|
config ASSERT
|
|
|
|
bool
|
|
|
|
prompt "Enable __ASSERT() macro"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This enables the __ASSERT() macro in the kernel code. If an assertion
|
|
|
|
fails, the calling thread is put on an infinite tight loop. Since
|
|
|
|
enabling this adds a significant footprint, it should only be enabled
|
|
|
|
in a non-production system.
|
|
|
|
|
|
|
|
config ASSERT_LEVEL
|
|
|
|
int
|
|
|
|
prompt "__ASSERT() level"
|
|
|
|
default 1
|
|
|
|
depends on ASSERT
|
|
|
|
help
|
|
|
|
This option specifies the assertion level used by the __ASSERT()
|
|
|
|
macro. It can be set to one of three possible values:
|
|
|
|
|
|
|
|
Level 0: off
|
|
|
|
Level 1: on + warning in every file that includes __assert.h
|
|
|
|
Level 2: on + no warning
|
|
|
|
|
2015-10-12 02:04:20 +08:00
|
|
|
config DEBUG_TRACING_KERNEL_OBJECTS
|
|
|
|
bool
|
|
|
|
prompt "Debug tracing object"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enable the feature for tracing kernel objects. This option
|
|
|
|
is for debug purposes and increase the memory footprint of the kernel.
|
|
|
|
|
2015-05-26 22:29:50 +08:00
|
|
|
endmenu
|
|
|
|
|
2015-06-20 22:50:49 +08:00
|
|
|
|
|
|
|
config BOOTLOADER_KEXEC
|
|
|
|
bool
|
|
|
|
prompt "Boot using Linux kexec() system call"
|
2015-06-20 22:55:30 +08:00
|
|
|
depends on X86_32
|
2015-06-20 22:50:49 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option signifies that Linux boots the kernel using kexec system call
|
|
|
|
and utility. This method is used to boot the kernel over the network.
|
|
|
|
|
2015-06-20 22:55:30 +08:00
|
|
|
config BOOTLOADER_UNKNOWN
|
|
|
|
bool
|
2015-09-29 22:08:58 +08:00
|
|
|
prompt "Generic boot loader support"
|
2015-06-20 22:55:30 +08:00
|
|
|
default n
|
2015-09-29 22:08:58 +08:00
|
|
|
depends on X86_32
|
2015-06-20 22:55:30 +08:00
|
|
|
help
|
2015-09-29 22:08:58 +08:00
|
|
|
This option signifies that the target has a generic bootloader
|
2015-06-20 22:55:30 +08:00
|
|
|
or that it supports multiple ways of booting and it isn't clear
|
|
|
|
at build time which method is to be used. When this option is enabled
|
2015-07-25 04:55:19 +08:00
|
|
|
the platform may have to do extra work to ensure a proper startup.
|
2015-06-20 22:55:30 +08:00
|
|
|
|
2015-05-26 22:29:50 +08:00
|
|
|
menu "System Monitoring Options"
|
|
|
|
|
|
|
|
config PERFORMANCE_METRICS
|
|
|
|
bool
|
2015-09-29 22:08:58 +08:00
|
|
|
prompt "Enable performance metrics [EXPERIMENTAL]"
|
2015-05-26 22:29:50 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable Performance Metrics.
|
|
|
|
|
|
|
|
config BOOT_TIME_MEASUREMENT
|
|
|
|
bool
|
|
|
|
prompt "Boot time measurements [EXPERIMENTAL]"
|
|
|
|
default n
|
2015-09-29 22:08:58 +08:00
|
|
|
depends on PERFORMANCE_METRICS
|
2015-05-26 22:29:50 +08:00
|
|
|
help
|
|
|
|
This option enables the recording of timestamps during system start
|
|
|
|
up. The global variable __start_tsc records the time kernel begins
|
|
|
|
executing, while __main_tsc records when main() begins executing,
|
|
|
|
and __idle_tsc records when the CPU becomes idle. All values are
|
|
|
|
recorded in terms of CPU clock cycles since system reset.
|
|
|
|
|
|
|
|
config CPU_CLOCK_FREQ_MHZ
|
|
|
|
int
|
|
|
|
prompt "CPU CLock Frequency in MHz"
|
|
|
|
default 20
|
|
|
|
depends on BOOT_TIME_MEASUREMENT
|
|
|
|
help
|
|
|
|
This option specifies the CPU Clock Frequency in MHz in order to
|
|
|
|
convert Intel RDTSC timestamp to microseconds.
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|