2019-04-06 15:08:09 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2022-04-08 18:08:48 +02:00
|
|
|
config BOARD
|
|
|
|
string
|
2022-09-14 22:23:15 +02:00
|
|
|
# When using hw model v2, then the board is inherited from CMake.
|
|
|
|
default "$(BOARD)" if "$(HWM_SCHEME)" = "v2"
|
2022-04-08 18:08:48 +02:00
|
|
|
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-07 20:21:18 +02:00
|
|
|
config BOARD_REVISION
|
2024-03-11 01:08:38 +01:00
|
|
|
def_string "$(BOARD_REVISION)"
|
2022-04-07 20:21:18 +02:00
|
|
|
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.
|
|
|
|
|
2024-03-04 10:16:10 +01:00
|
|
|
config BOARD_TARGET
|
|
|
|
string
|
|
|
|
default "$(BOARD)@$(BOARD_REVISION)$(BOARD_QUALIFIERS)" if "$(BOARD_REVISION)" != ""
|
|
|
|
default "$(BOARD)$(BOARD_QUALIFIERS)"
|
|
|
|
help
|
|
|
|
Contains the board target (full string including name, revision, soc, cluster and
|
|
|
|
variant) of the board being used.
|
|
|
|
|
|
|
|
For example, if building for ``nrf5340dk/nrf5340/cpuapp`` then this will contain the
|
|
|
|
value ``nrf5340dk/nrf5340/cpuapp``.
|
|
|
|
|
2020-01-09 23:20:44 +01:00
|
|
|
config BOARD_DEPRECATED_RELEASE
|
2016-10-19 22:05:35 +02:00
|
|
|
string
|
|
|
|
help
|
2017-12-13 16:08:21 +01: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-19 22:05:35 +02:00
|
|
|
|
2017-07-26 14:08:21 +02:00
|
|
|
config QEMU_TARGET
|
2017-07-31 22:38:03 +02:00
|
|
|
bool
|
2017-07-26 14:08:21 +02:00
|
|
|
help
|
|
|
|
Mark all QEMU targets with this variable for checking whether we are
|
|
|
|
running in an emulated environment.
|
|
|
|
|
2021-09-10 15:53:31 +02: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
|
|
|
|
|
2022-09-14 22:23:15 +02:00
|
|
|
rsource "Kconfig.$(HWM_SCHEME)"
|
2015-12-13 11:54:28 +01:00
|
|
|
|
2019-11-22 10:37:01 +01:00
|
|
|
# Parse shields references
|
|
|
|
# Don't do it as a menuconfig, as shield selection is a CMake feature.
|
2021-06-02 08:47:21 +02: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 11:54:28 +01:00
|
|
|
|
2016-03-15 18:27:39 +01:00
|
|
|
menu "Board Options"
|
2020-05-12 02:44:51 +02:00
|
|
|
config QEMU_ICOUNT
|
|
|
|
bool "QEMU icount mode"
|
|
|
|
depends on QEMU_TARGET
|
2020-06-17 17:26:51 +02:00
|
|
|
default y if !NETWORKING && !BT
|
2020-05-12 02:44:51 +02: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-19 21:24:25 +02: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 11:45:11 +02: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 09:52:09 +01: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-28 18:15:24 +02: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.
|
|
|
|
|
2023-01-30 14:09:18 +01:00
|
|
|
config QEMU_GDBSERVER_LISTEN_DEV
|
|
|
|
string "QEMU gdbserver listen device"
|
|
|
|
default "tcp::1234"
|
|
|
|
depends on QEMU_TARGET
|
|
|
|
help
|
|
|
|
This options is passed onto QEMU as a parameter to `-gdb` option.
|
|
|
|
The default value is equivalent to `-s` which is a shorthand for
|
|
|
|
`-gdb tcp::1234`. An empty value omits the `-gdb` parameter altogether.
|
|
|
|
This allows the injection of `-gdb` parameter from other sources such
|
|
|
|
as the `QEMU_EXTRA_FLAGS` environment variable. Refer to application
|
|
|
|
development doc and/or QEMU invocation doc for more info.
|
|
|
|
|
2023-10-09 14:57:39 +02:00
|
|
|
config QEMU_EXTRA_FLAGS
|
|
|
|
string "QEMU extra flags"
|
|
|
|
depends on QEMU_TARGET
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
This option is to pass onto QEMU an extra list of parameters
|
|
|
|
to setup devices, for example to allocate interface for Zephyr
|
|
|
|
GDBstub over serial with `-serial tcp:127.0.0.1:5678,server`
|
|
|
|
|
2018-08-14 07:20:30 +02:00
|
|
|
# There might not be any board options, hence the optional source
|
2018-09-05 13:10:19 +02:00
|
|
|
osource "$(BOARD_DIR)/Kconfig"
|
2016-03-15 18:27:39 +01:00
|
|
|
endmenu
|
2020-08-05 21:57:00 +02:00
|
|
|
|
|
|
|
config BOARD_HAS_TIMING_FUNCTIONS
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Should be selected if board provides custom method for retrieving
|
|
|
|
timestamps and cycle count.
|