blob: 23bb55591aeb872e2fba9af19509517c8e7f1cae [file] [log] [blame]
Anas Nashif3ae52622019-04-06 09:08:09 -04001# SPDX-License-Identifier: Apache-2.0
2
Vincent Wana2bc5142020-01-09 14:20:44 -08003config BOARD_DEPRECATED_RELEASE
Andrew Boiea5ae8892016-10-19 13:05:35 -07004 string
5 help
Anas Nashif429c2a42017-12-13 10:08:21 -05006 This hidden option is set in the board configuration and indicates
7 the Zephyr release that the board configuration will be removed.
8 When set, any build for that board will generate a clearly visible
9 deprecation warning.
Andrew Boiea5ae8892016-10-19 13:05:35 -070010
Anas Nashifdd8fd722017-07-26 08:08:21 -040011config QEMU_TARGET
Maureen Helm3e370112017-07-31 15:38:03 -050012 bool
Anas Nashifdd8fd722017-07-26 08:08:21 -040013 help
14 Mark all QEMU targets with this variable for checking whether we are
15 running in an emulated environment.
16
Ulf Magnussond0e87522018-09-05 12:58:05 +020017# Note: $BOARD_DIR might be a glob pattern
Ulf Magnusson547ed9b2018-05-08 09:31:48 +020018
Anas Nashiffdb1daf2015-12-13 05:54:28 -050019choice
Ulf Magnusson975de212019-11-01 10:24:07 +010020 prompt "Board Selection"
21
Ulf Magnussond7130332018-09-05 13:10:19 +020022source "$(BOARD_DIR)/Kconfig.board"
Ulf Magnusson975de212019-11-01 10:24:07 +010023
Anas Nashiffdb1daf2015-12-13 05:54:28 -050024endchoice
25
Erwan Gourioue3bed1f2019-11-22 10:37:01 +010026# Parse shields references
27# Don't do it as a menuconfig, as shield selection is a CMake feature.
Torsten Rasmussen4558ba72020-10-27 11:08:28 +010028source "$(KCONFIG_BINARY_DIR)/Kconfig.shield"
Anas Nashiffdb1daf2015-12-13 05:54:28 -050029
Daniel Leung1268ab92016-03-15 10:27:39 -070030menu "Board Options"
Wentong Wu0b2e6332020-05-12 08:44:51 +080031config QEMU_ICOUNT
32 bool "QEMU icount mode"
33 depends on QEMU_TARGET
Carles Cufi24f8b582020-06-17 17:26:51 +020034 default y if !NETWORKING && !BT
Wentong Wu0b2e6332020-05-12 08:44:51 +080035 help
36 Enable QEMU virtual instruction counter. The virtual cpu will
37 execute one instruction every 2^N ns of virtual time. This will
38 give deterministic execution times from the guest point of view.
39
Andrew Boiea9670ab2020-05-19 12:24:25 -070040config QEMU_ICOUNT_SHIFT
41 int "QEMU icount shift value"
42 depends on QEMU_ICOUNT
43 help
44 The virtual CPU will execute one instruction every 2^N nanoseconds
45 of virtual time, where N is the value provided here.
46
Tomasz Bursztyka892714f2020-12-11 09:52:09 +010047config QEMU_IVSHMEM_PLAIN_MEM_SIZE
48 int "QEMU ivshmem-plain shared memory size in mega-bytes"
49 default 1
50 depends on QEMU_TARGET && IVSHMEM && !IVSHMEM_DOORBELL
51 help
52 This sets the size of the shared memory when using ivshmem-plain
53 device in Qemu. Note that it's in mega-bytes, so 1 means 1M for Qemu
54 etc..
55
Ulf Magnusson17f1b0a2018-08-14 07:20:30 +020056# There might not be any board options, hence the optional source
Ulf Magnussond7130332018-09-05 13:10:19 +020057osource "$(BOARD_DIR)/Kconfig"
Daniel Leung1268ab92016-03-15 10:27:39 -070058endmenu
Daniel Leung0ffcfa92020-08-05 12:57:00 -070059
60config BOARD_HAS_TIMING_FUNCTIONS
61 bool
62 help
63 Should be selected if board provides custom method for retrieving
64 timestamps and cycle count.