boards: convert QEMU RV32E board to Zephyr HWMv2

This commit converts the QEMU RV32E board to Zephyr HWMvW. This includes
the following former target: qemu_riscv32e.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
This commit is contained in:
Filip Kokosinski
2024-02-21 10:41:55 +01:00
committed by Carles Cufi
parent 5b2ffc652b
commit f4c31a2b86
11 changed files with 31 additions and 26 deletions

View File

@@ -1,11 +0,0 @@
# Copyright (c) 2022 Carlo Caione <ccaione@baylibre.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_QEMU_RISCV32E
bool "QEMU RISCV32E target"
depends on SOC_RISCV_VIRT
select QEMU_TARGET
select HAS_COVERAGE_SUPPORT
select RISCV_ISA_RV32E
select RISCV_ISA_EXT_ZICSR
select RISCV_ISA_EXT_ZIFENCEI

View File

@@ -1,13 +0,0 @@
# Copyright (c) 2022 Carlo Caione <ccaione@baylibre.com>
# SPDX-License-Identifier: Apache-2.0
config BUILD_OUTPUT_BIN
default n
config BOARD
default "qemu_riscv32e" if BOARD_QEMU_RISCV32E
# Use thread local storage by default so that
# this feature gets more CI coverage.
config THREAD_LOCAL_STORAGE
default y

View File

@@ -0,0 +1,5 @@
# Copyright (c) 2024 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_QEMU_RISCV32E
select QEMU_TARGET

View File

@@ -0,0 +1,16 @@
# Copyright (c) 2024 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
if BOARD_QEMU_RISCV32E
# Use thread local storage by default so that this feature gets more CI coverage.
config THREAD_LOCAL_STORAGE
default y
config BUILD_OUTPUT_BIN
default n
config HAS_COVERAGE_SUPPORT
default y
endif # BOARD_QEMU_RISCV32E

View File

@@ -0,0 +1,5 @@
# Copyright (c) 2024 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_QEMU_RISCV32E
select SOC_QEMU_VIRT_RISCV32E

View File

@@ -0,0 +1,5 @@
board:
name: qemu_riscv32e
vendor: qemu
socs:
- name: qemu_virt_riscv32e

View File

@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_RISCV_VIRT=y
CONFIG_BOARD_QEMU_RISCV32E=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y