boards: arm64: xenvm: Convert to v2
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
@@ -6,7 +6,4 @@ if BOARD_XENVM
|
||||
config BUILD_OUTPUT_BIN
|
||||
default y
|
||||
|
||||
config BOARD
|
||||
default "xenvm"
|
||||
|
||||
endif # BOARD_XENVM
|
||||
@@ -2,6 +2,4 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_XENVM
|
||||
bool "Xen Virtual Machine"
|
||||
depends on SOC_XENVM
|
||||
select ARM64
|
||||
select SOC_XENVM
|
||||
7
boards/v2/xenvm/board.yml
Normal file
7
boards/v2/xenvm/board.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
board:
|
||||
name: xenvm
|
||||
vendor: Xen
|
||||
socs:
|
||||
- name: xenvm
|
||||
variants:
|
||||
- name: gicv3
|
||||
@@ -60,7 +60,7 @@ Depending on the version of the GIC on your hardware, you may choose one of the
|
||||
following board configurations:
|
||||
|
||||
- ``xenvm_defconfig`` selects GICv2
|
||||
- ``xenvm_gicv3_defconfig`` selects GICv3
|
||||
- ``xenvm_xenvm_gicv3_defconfig`` selects GICv3
|
||||
|
||||
CPU Core type
|
||||
-------------
|
||||
@@ -106,7 +106,7 @@ guest, for example, with the :zephyr:code-sample:`synchronization` sample:
|
||||
|
||||
.. code-block::
|
||||
|
||||
$ west build -b xenvm_gicv3 samples/synchronization
|
||||
$ west build -b xenvm//gicv3 samples/synchronization
|
||||
|
||||
This will build an image with the synchronization sample app. Next, you need to
|
||||
create guest configuration file :code:`zephyr.conf`. There is example:
|
||||
@@ -120,7 +120,7 @@ create guest configuration file :code:`zephyr.conf`. There is example:
|
||||
gic_version="v2"
|
||||
on_crash="preserve"
|
||||
|
||||
When using ``xenvm_gicv3`` configuration, you need to remove the ``gic_version``
|
||||
When using ``xenvm//gicv3`` configuration, you need to remove the ``gic_version``
|
||||
parameter or set it to ``"v3"``.
|
||||
|
||||
You need to upload both :code:`zephyr.bin` and :code:`zephyr.conf` to your Dom0
|
||||
@@ -1,6 +1,3 @@
|
||||
CONFIG_SOC_XENVM=y
|
||||
CONFIG_BOARD_XENVM=y
|
||||
|
||||
# Enable UART driver
|
||||
CONFIG_SERIAL=y
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
identifier: xenvm_gicv3
|
||||
identifier: xenvm//gicv3
|
||||
name: ARMv8 Xen Virtual Machine With GICv3
|
||||
type: mcu
|
||||
arch: arm64
|
||||
@@ -1,6 +1,3 @@
|
||||
CONFIG_SOC_XENVM=y
|
||||
CONFIG_BOARD_XENVM=y
|
||||
|
||||
# Enable UART driver
|
||||
CONFIG_SERIAL=y
|
||||
|
||||
Reference in New Issue
Block a user