boards: nios2: qemu_nios2: Convert to v2

Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2024-01-11 13:50:19 +00:00
parent d3ef220460
commit ec5fbd67f7
11 changed files with 16 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
config BOARD_ALTERA_MAX10
select SOC_NIOS2F_ZEPHYR
select SOC_ZEPHYR_NIOS2F

View File

@@ -2,4 +2,4 @@ board:
name: altera_max10
vendor: Altera Corporation
socs:
- name: nios2f-zephyr
- name: zephyr_nios2f

View File

@@ -1,6 +1,5 @@
# Copyright (c) 2018 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config BOARD_QEMU_NIOS2
bool "QEMU NIOS II target"
depends on SOC_NIOS2_QEMU
select QEMU_TARGET

View File

@@ -1,3 +1,4 @@
# Copyright (c) 2018 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
if BOARD_QEMU_NIOS2
@@ -5,7 +6,4 @@ if BOARD_QEMU_NIOS2
config BUILD_OUTPUT_BIN
default n
config BOARD
default "qemu_nios2"
endif

View File

@@ -0,0 +1,5 @@
# Copyright (c) 2018 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config BOARD_QEMU_NIOS2
select SOC_QEMU_NIOS2

View File

@@ -1,3 +1,4 @@
# Copyright (c) 2018 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
set(SUPPORTED_EMU_PLATFORMS qemu)

View File

@@ -0,0 +1,5 @@
board:
name: qemu_nios2
vendor: Altera Corporation
socs:
- name: qemu_nios2

View File

@@ -1,7 +1,6 @@
# Copyright (c) 2018 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_NIOS2_QEMU=y
CONFIG_BOARD_QEMU_NIOS2=y
CONFIG_HAS_ALTERA_HAL=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y