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
|
2022-09-15 04:23:15 +08:00
|
|
|
# When using hw model v2, then the board is inherited from CMake.
|
|
|
|
default "$(BOARD)" if "$(HWM_SCHEME)" = "v2"
|
2022-04-09 00:08:48 +08: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-08 02:21:18 +08:00
|
|
|
config BOARD_REVISION
|
2024-03-11 08:08:38 +08:00
|
|
|
def_string "$(BOARD_REVISION)"
|
2022-04-08 02:21:18 +08: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 17:16:10 +08: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-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.
|
2024-08-13 16:30:22 +08:00
|
|
|
When adding this to a BOARD, remember to follow the instructions in
|
|
|
|
https://docs.zephyrproject.org/latest/develop/api/api_lifecycle.html#deprecated
|
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
|
|
|
|
|
2022-09-15 04:23:15 +08:00
|
|
|
rsource "Kconfig.$(HWM_SCHEME)"
|
2015-12-13 18:54:28 +08:00
|
|
|
|
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.
|
|
|
|
|
2023-01-30 21:09:18 +08: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 20:57:39 +08: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 13:20:30 +08:00
|
|
|
# There might not be any board options, hence the optional source
|
2024-05-08 19:10:48 +08:00
|
|
|
osource "$(KCONFIG_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.
|