2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2022-04-09 00:08:48 +08:00
|
|
|
config BOARD
|
|
|
|
string
|
|
|
|
help
|
|
|
|
This option holds the name of the board and is used to locate the files
|
|
|
|
related to the board in the source tree (under boards/).
|
|
|
|
The Board is the first location where we search for a linker.ld file,
|
|
|
|
if not found we look for the linker file in
|
|
|
|
soc/<arch>/<family>/<series>
|
|
|
|
|
2022-04-08 02:21:18 +08:00
|
|
|
config BOARD_REVISION
|
|
|
|
def_string "$BOARD_REVISION"
|
|
|
|
help
|
|
|
|
If the BOARD has a revision field set, this is the revision.
|
|
|
|
Otherwise, it is the empty string. For example, if BOARD is
|
|
|
|
"plank@foo", this option will be "foo". If BOARD is "plank",
|
|
|
|
this option will be the empty string.
|
|
|
|
|
2020-01-10 06:20:44 +08:00
|
|
|
config BOARD_DEPRECATED_RELEASE
|
2016-10-20 04:05:35 +08:00
|
|
|
string
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This hidden option is set in the board configuration and indicates
|
|
|
|
the Zephyr release that the board configuration will be removed.
|
|
|
|
When set, any build for that board will generate a clearly visible
|
|
|
|
deprecation warning.
|
2016-10-20 04:05:35 +08:00
|
|
|
|
2017-07-26 20:08:21 +08:00
|
|
|
config QEMU_TARGET
|
2017-08-01 04:38:03 +08:00
|
|
|
bool
|
2017-07-26 20:08:21 +08:00
|
|
|
help
|
|
|
|
Mark all QEMU targets with this variable for checking whether we are
|
|
|
|
running in an emulated environment.
|
|
|
|
|
2021-09-10 21:53:31 +08:00
|
|
|
config NET_DRIVERS
|
|
|
|
bool
|
|
|
|
default y if QEMU_TARGET && NETWORKING
|
|
|
|
help
|
|
|
|
When building for a qemu target then NET_DRIVERS will be default
|
|
|
|
enabled to allow for easy use of SLIP or PPP
|
|
|
|
|
2018-09-05 18:58:05 +08:00
|
|
|
# Note: $BOARD_DIR might be a glob pattern
|
2018-05-08 15:31:48 +08:00
|
|
|
|
2015-12-13 18:54:28 +08:00
|
|
|
choice
|
2019-11-01 17:24:07 +08:00
|
|
|
prompt "Board Selection"
|
|
|
|
|
2018-09-05 19:10:19 +08:00
|
|
|
source "$(BOARD_DIR)/Kconfig.board"
|
2019-11-01 17:24:07 +08:00
|
|
|
|
2015-12-13 18:54:28 +08:00
|
|
|
endchoice
|
|
|
|
|
2019-11-22 17:37:01 +08:00
|
|
|
# Parse shields references
|
|
|
|
# Don't do it as a menuconfig, as shield selection is a CMake feature.
|
2021-06-02 14:47:21 +08:00
|
|
|
# This loads custom shields Kconfig (from BOARD_ROOT)
|
|
|
|
osource "$(KCONFIG_BINARY_DIR)/Kconfig.shield"
|
|
|
|
# This loads Zephyr base shield defconfigs
|
|
|
|
rsource "shields/*/Kconfig.shield"
|
2015-12-13 18:54:28 +08:00
|
|
|
|
2016-03-16 01:27:39 +08:00
|
|
|
menu "Board Options"
|
2020-05-12 08:44:51 +08:00
|
|
|
config QEMU_ICOUNT
|
|
|
|
bool "QEMU icount mode"
|
|
|
|
depends on QEMU_TARGET
|
2020-06-17 23:26:51 +08:00
|
|
|
default y if !NETWORKING && !BT
|
2020-05-12 08:44:51 +08:00
|
|
|
help
|
|
|
|
Enable QEMU virtual instruction counter. The virtual cpu will
|
|
|
|
execute one instruction every 2^N ns of virtual time. This will
|
|
|
|
give deterministic execution times from the guest point of view.
|
|
|
|
|
2020-05-20 03:24:25 +08:00
|
|
|
config QEMU_ICOUNT_SHIFT
|
|
|
|
int "QEMU icount shift value"
|
|
|
|
depends on QEMU_ICOUNT
|
|
|
|
help
|
|
|
|
The virtual CPU will execute one instruction every 2^N nanoseconds
|
|
|
|
of virtual time, where N is the value provided here.
|
|
|
|
|
2021-10-15 17:45:11 +08:00
|
|
|
config QEMU_ICOUNT_SLEEP
|
|
|
|
bool "QEMU icount sleep mode enable"
|
|
|
|
depends on QEMU_ICOUNT
|
|
|
|
help
|
|
|
|
When the virtual CPU is sleeping, the virtual time will advance
|
|
|
|
at default speed unless this option is set. With this option set,
|
|
|
|
the virtual time will jump to the next timer deadline instantly
|
|
|
|
whenever the virtual CPU goes to sleep mode and will not advance
|
|
|
|
if no timer is enabled. This behavior gives deterministic execution
|
|
|
|
times from the guest point of view.
|
|
|
|
|
2020-12-11 16:52:09 +08:00
|
|
|
config QEMU_IVSHMEM_PLAIN_MEM_SIZE
|
|
|
|
int "QEMU ivshmem-plain shared memory size in mega-bytes"
|
|
|
|
default 1
|
|
|
|
depends on QEMU_TARGET && IVSHMEM && !IVSHMEM_DOORBELL
|
|
|
|
help
|
|
|
|
This sets the size of the shared memory when using ivshmem-plain
|
|
|
|
device in Qemu. Note that it's in mega-bytes, so 1 means 1M for Qemu
|
|
|
|
etc..
|
|
|
|
|
2021-07-29 00:15:24 +08:00
|
|
|
config QEMU_UEFI_BOOT
|
|
|
|
bool "QEMU uses UEFI to boot up"
|
|
|
|
default n
|
|
|
|
depends on BUILD_OUTPUT_EFI && QEMU_TARGET && X86_64
|
|
|
|
help
|
|
|
|
This option indicates that QEMU will use UEFI bootable method
|
|
|
|
to boot up.
|
|
|
|
|
2018-08-14 13:20:30 +08:00
|
|
|
# There might not be any board options, hence the optional source
|
2018-09-05 19:10:19 +08:00
|
|
|
osource "$(BOARD_DIR)/Kconfig"
|
2016-03-16 01:27:39 +08:00
|
|
|
endmenu
|
2020-08-06 03:57:00 +08:00
|
|
|
|
|
|
|
config BOARD_HAS_TIMING_FUNCTIONS
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Should be selected if board provides custom method for retrieving
|
|
|
|
timestamps and cycle count.
|