2015-05-21 00:40:39 +08:00
|
|
|
# Kconfig - miscellany configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
|
|
|
|
2015-08-22 07:16:58 +08:00
|
|
|
menu "Compile and Link Features"
|
|
|
|
|
2016-12-18 19:54:49 +08:00
|
|
|
menu "Linker Options"
|
2017-04-11 00:30:51 +08:00
|
|
|
config HAS_FLASH_LOAD_OFFSET
|
|
|
|
bool
|
|
|
|
help
|
2017-04-08 03:06:42 +08:00
|
|
|
This option is selected by targets having a FLASH_LOAD_OFFSET
|
|
|
|
and FLASH_LOAD_SIZE.
|
2017-04-11 00:30:51 +08:00
|
|
|
|
2017-05-23 23:56:13 +08:00
|
|
|
if !HAS_DTS
|
2017-04-11 00:30:51 +08:00
|
|
|
config FLASH_LOAD_OFFSET
|
|
|
|
hex "Kernel load offset"
|
|
|
|
default 0
|
|
|
|
depends on HAS_FLASH_LOAD_OFFSET
|
|
|
|
help
|
|
|
|
This option specifies the byte offset from the beginning of flash that
|
|
|
|
the kernel should be loaded into. Changing this value from zero will
|
|
|
|
affect the Zephyr image's link, and will decrease the total amount of
|
|
|
|
flash available for use by application code.
|
|
|
|
|
|
|
|
If unsure, leave at the default value 0.
|
|
|
|
|
2017-04-08 03:06:42 +08:00
|
|
|
config FLASH_LOAD_SIZE
|
|
|
|
hex "Kernel load size"
|
|
|
|
default 0
|
|
|
|
depends on HAS_FLASH_LOAD_OFFSET
|
|
|
|
help
|
|
|
|
If non-zero, this option specifies the size, in bytes, of the flash
|
|
|
|
area that the Zephyr image will be allowed to occupy. If zero, the
|
|
|
|
image will be able to occupy from the FLASH_LOAD_OFFSET to the end of
|
|
|
|
the device.
|
|
|
|
|
|
|
|
If unsure, leave at the default value 0.
|
2017-05-23 23:56:13 +08:00
|
|
|
endif
|
2017-04-08 03:06:42 +08:00
|
|
|
|
2016-09-10 20:06:15 +08:00
|
|
|
config TEXT_SECTION_OFFSET
|
|
|
|
hex "TEXT section offset"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
This sets and offset before the text section and allows booting images
|
|
|
|
with custom headers that are inserted at the beginning of the image.
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config HAVE_CUSTOM_LINKER_SCRIPT
|
2015-10-02 05:31:31 +08:00
|
|
|
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.
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config CUSTOM_LINKER_SCRIPT
|
2015-10-02 05:31:31 +08:00
|
|
|
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
|
2016-08-18 07:33:08 +08:00
|
|
|
board.
|
2015-10-02 05:31:31 +08:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2016-11-22 06:16:11 +08:00
|
|
|
config CUSTOM_RODATA_LD
|
|
|
|
bool "Include custom-rodata.ld"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Include a customized linker script fragment for inserting additional
|
|
|
|
data and linker directives into the rodata section.
|
|
|
|
|
|
|
|
config CUSTOM_RWDATA_LD
|
|
|
|
bool "Include custom-rwdata.ld"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Include a customized linker script fragment for inserting additional
|
|
|
|
data and linker directives into the data section.
|
|
|
|
|
|
|
|
config CUSTOM_SECTIONS_LD
|
|
|
|
bool "Include custom-sections.ld"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Include a customized linker script fragment for inserting additional
|
|
|
|
arbitrary sections.
|
|
|
|
|
2016-12-18 19:54:49 +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.
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Compiler Options"
|
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
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config COMPILER_OPT
|
2015-05-26 22:29:50 +08:00
|
|
|
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
|
2017-04-22 01:55:27 +08:00
|
|
|
predefined set of compiler supplied by the build system,
|
2015-05-26 22:29:50 +08:00
|
|
|
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.
|
|
|
|
|
2016-12-18 19:54:49 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
config KERNEL_BIN_NAME
|
|
|
|
string "The kernel binary name"
|
|
|
|
default "zephyr"
|
|
|
|
help
|
|
|
|
This option sets the name of the generated kernel binary.
|
|
|
|
|
2015-05-26 22:29:50 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "System Monitoring Options"
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config PERFORMANCE_METRICS
|
2015-05-26 22:29:50 +08:00
|
|
|
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.
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config BOOT_TIME_MEASUREMENT
|
2015-05-26 22:29:50 +08:00
|
|
|
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
|
2017-06-14 17:45:49 +08:00
|
|
|
up. The global variable __start_time_stamp records the time kernel begins
|
|
|
|
executing, while __main_time_stamp records when main() begins executing,
|
|
|
|
and __idle_time_stamp records when the CPU becomes idle. All values are
|
2015-05-26 22:29:50 +08:00
|
|
|
recorded in terms of CPU clock cycles since system reset.
|
|
|
|
|
2016-05-25 07:17:13 +08:00
|
|
|
config CPU_CLOCK_FREQ_MHZ
|
2015-05-26 22:29:50 +08:00
|
|
|
int
|
2017-05-06 06:37:53 +08:00
|
|
|
prompt "CPU Clock Frequency in MHz"
|
2015-05-26 22:29:50 +08:00
|
|
|
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
|
|
|
|
|
2015-11-30 09:09:00 +08:00
|
|
|
menu "Boot Options"
|
|
|
|
|
2016-03-14 07:51:37 +08:00
|
|
|
config IS_BOOTLOADER
|
2016-05-25 07:17:13 +08:00
|
|
|
bool "Act as a bootloader"
|
|
|
|
default n
|
|
|
|
depends on XIP
|
2016-03-14 07:51:37 +08:00
|
|
|
depends on ARM
|
2016-05-25 07:17:13 +08:00
|
|
|
help
|
|
|
|
This option indicates that Zephyr will act as a bootloader to execute
|
|
|
|
a separate Zephyr image payload.
|
2016-03-14 07:51:37 +08:00
|
|
|
|
|
|
|
config BOOTLOADER_SRAM_SIZE
|
2016-05-25 07:17:13 +08:00
|
|
|
int "SRAM reserved for when Zephyr acts as a bootloader"
|
|
|
|
default 16
|
|
|
|
depends on !XIP || IS_BOOTLOADER
|
2016-03-14 07:51:37 +08:00
|
|
|
depends on ARM
|
2016-05-25 07:17:13 +08:00
|
|
|
help
|
|
|
|
This option specifies the amount of SRAM (measure in kB) reserved for
|
|
|
|
when Zephyr is to act as a bootloader.
|
2016-03-14 07:51:37 +08:00
|
|
|
|
2015-11-30 09:09:00 +08:00
|
|
|
config BOOTLOADER_KEXEC
|
|
|
|
bool
|
|
|
|
prompt "Boot using Linux kexec() system call"
|
|
|
|
depends on X86
|
|
|
|
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.
|
|
|
|
|
|
|
|
config BOOTLOADER_UNKNOWN
|
|
|
|
bool
|
|
|
|
prompt "Generic boot loader support"
|
|
|
|
default n
|
|
|
|
depends on X86
|
|
|
|
help
|
|
|
|
This option signifies that the target has a generic bootloader
|
|
|
|
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
|
2016-08-18 07:33:08 +08:00
|
|
|
the board may have to do extra work to ensure a proper startup.
|
2015-11-30 09:09:00 +08:00
|
|
|
|
2016-11-10 15:16:27 +08:00
|
|
|
config BOOTLOADER_CONTEXT_RESTORE
|
|
|
|
bool
|
|
|
|
prompt "Boot loader has context restore support"
|
|
|
|
default y
|
|
|
|
depends on SYS_POWER_DEEP_SLEEP && BOOTLOADER_CONTEXT_RESTORE_SUPPORTED
|
|
|
|
help
|
|
|
|
This option signifies that the target has a bootloader
|
|
|
|
that restores CPU context upon resuming from deep sleep
|
|
|
|
power state.
|
|
|
|
|
2015-09-29 03:53:04 +08:00
|
|
|
config REBOOT
|
|
|
|
bool "Reboot functionality"
|
|
|
|
default n
|
|
|
|
select SYSTEM_CLOCK_DISABLE
|
|
|
|
help
|
|
|
|
Enable the sys_reboot() API. Enabling this can drag in other subsystems
|
|
|
|
needed to perform a "safe" reboot (e.g. SYSTEM_CLOCK_DISABLE, to stop the
|
|
|
|
system clock before issuing a reset).
|
2015-11-30 09:09:00 +08:00
|
|
|
endmenu
|