Anas Nashif | 3ae5262 | 2019-04-06 09:08:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | |
Vincent Wan | a2bc514 | 2020-01-09 14:20:44 -0800 | [diff] [blame] | 3 | config BOARD_DEPRECATED_RELEASE |
Andrew Boie | a5ae889 | 2016-10-19 13:05:35 -0700 | [diff] [blame] | 4 | string |
| 5 | help |
Anas Nashif | 429c2a4 | 2017-12-13 10:08:21 -0500 | [diff] [blame] | 6 | 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 Boie | a5ae889 | 2016-10-19 13:05:35 -0700 | [diff] [blame] | 10 | |
Anas Nashif | dd8fd72 | 2017-07-26 08:08:21 -0400 | [diff] [blame] | 11 | config QEMU_TARGET |
Maureen Helm | 3e37011 | 2017-07-31 15:38:03 -0500 | [diff] [blame] | 12 | bool |
Anas Nashif | dd8fd72 | 2017-07-26 08:08:21 -0400 | [diff] [blame] | 13 | help |
| 14 | Mark all QEMU targets with this variable for checking whether we are |
| 15 | running in an emulated environment. |
| 16 | |
Ulf Magnusson | d0e8752 | 2018-09-05 12:58:05 +0200 | [diff] [blame] | 17 | # Note: $BOARD_DIR might be a glob pattern |
Ulf Magnusson | 547ed9b | 2018-05-08 09:31:48 +0200 | [diff] [blame] | 18 | |
Anas Nashif | fdb1daf | 2015-12-13 05:54:28 -0500 | [diff] [blame] | 19 | choice |
Ulf Magnusson | 975de21 | 2019-11-01 10:24:07 +0100 | [diff] [blame] | 20 | prompt "Board Selection" |
| 21 | |
Ulf Magnusson | d713033 | 2018-09-05 13:10:19 +0200 | [diff] [blame] | 22 | source "$(BOARD_DIR)/Kconfig.board" |
Ulf Magnusson | 975de21 | 2019-11-01 10:24:07 +0100 | [diff] [blame] | 23 | |
Anas Nashif | fdb1daf | 2015-12-13 05:54:28 -0500 | [diff] [blame] | 24 | endchoice |
| 25 | |
Erwan Gouriou | e3bed1f | 2019-11-22 10:37:01 +0100 | [diff] [blame] | 26 | # Parse shields references |
| 27 | # Don't do it as a menuconfig, as shield selection is a CMake feature. |
Torsten Rasmussen | 4558ba7 | 2020-10-27 11:08:28 +0100 | [diff] [blame] | 28 | source "$(KCONFIG_BINARY_DIR)/Kconfig.shield" |
Anas Nashif | fdb1daf | 2015-12-13 05:54:28 -0500 | [diff] [blame] | 29 | |
Daniel Leung | 1268ab9 | 2016-03-15 10:27:39 -0700 | [diff] [blame] | 30 | menu "Board Options" |
Wentong Wu | 0b2e633 | 2020-05-12 08:44:51 +0800 | [diff] [blame] | 31 | config QEMU_ICOUNT |
| 32 | bool "QEMU icount mode" |
| 33 | depends on QEMU_TARGET |
Carles Cufi | 24f8b58 | 2020-06-17 17:26:51 +0200 | [diff] [blame] | 34 | default y if !NETWORKING && !BT |
Wentong Wu | 0b2e633 | 2020-05-12 08:44:51 +0800 | [diff] [blame] | 35 | 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 Boie | a9670ab | 2020-05-19 12:24:25 -0700 | [diff] [blame] | 40 | config 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 Bursztyka | 892714f | 2020-12-11 09:52:09 +0100 | [diff] [blame] | 47 | config 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 Magnusson | 17f1b0a | 2018-08-14 07:20:30 +0200 | [diff] [blame] | 56 | # There might not be any board options, hence the optional source |
Ulf Magnusson | d713033 | 2018-09-05 13:10:19 +0200 | [diff] [blame] | 57 | osource "$(BOARD_DIR)/Kconfig" |
Daniel Leung | 1268ab9 | 2016-03-15 10:27:39 -0700 | [diff] [blame] | 58 | endmenu |
Daniel Leung | 0ffcfa9 | 2020-08-05 12:57:00 -0700 | [diff] [blame] | 59 | |
| 60 | config BOARD_HAS_TIMING_FUNCTIONS |
| 61 | bool |
| 62 | help |
| 63 | Should be selected if board provides custom method for retrieving |
| 64 | timestamps and cycle count. |