From f8322b71266a04d3205a7045ba37e4bc2b57b535 Mon Sep 17 00:00:00 2001 From: Guillaume Gautier Date: Thu, 8 Feb 2024 11:37:00 +0100 Subject: [PATCH] boards: Convert stm32g081b_eval to HWM v2 Port the board to HWMv2. Signed-off-by: Guillaume Gautier --- .../arm/stm32g081b_eval/Kconfig.defconfig | 11 ----------- .../stm32g081b_eval/Kconfig.stm32g081b_eval} | 5 +---- .../arm => st}/stm32g081b_eval/board.cmake | 0 boards/st/stm32g081b_eval/board.yml | 5 +++++ .../stm32g081b_eval/doc/img/stm32g081b_eval.jpg | Bin .../arm => st}/stm32g081b_eval/doc/index.rst | 0 .../arm => st}/stm32g081b_eval/stm32g081b_eval.dts | 0 .../arm => st}/stm32g081b_eval/stm32g081b_eval.yaml | 0 .../stm32g081b_eval/stm32g081b_eval_defconfig | 3 --- 9 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 boards/boards_legacy/arm/stm32g081b_eval/Kconfig.defconfig rename boards/{boards_legacy/arm/stm32g081b_eval/Kconfig.board => st/stm32g081b_eval/Kconfig.stm32g081b_eval} (50%) rename boards/{boards_legacy/arm => st}/stm32g081b_eval/board.cmake (100%) create mode 100644 boards/st/stm32g081b_eval/board.yml rename boards/{boards_legacy/arm => st}/stm32g081b_eval/doc/img/stm32g081b_eval.jpg (100%) rename boards/{boards_legacy/arm => st}/stm32g081b_eval/doc/index.rst (100%) rename boards/{boards_legacy/arm => st}/stm32g081b_eval/stm32g081b_eval.dts (100%) rename boards/{boards_legacy/arm => st}/stm32g081b_eval/stm32g081b_eval.yaml (100%) rename boards/{boards_legacy/arm => st}/stm32g081b_eval/stm32g081b_eval_defconfig (85%) diff --git a/boards/boards_legacy/arm/stm32g081b_eval/Kconfig.defconfig b/boards/boards_legacy/arm/stm32g081b_eval/Kconfig.defconfig deleted file mode 100644 index 548b4d75cc13abd..000000000000000 --- a/boards/boards_legacy/arm/stm32g081b_eval/Kconfig.defconfig +++ /dev/null @@ -1,11 +0,0 @@ -# STM32G081B evaluation board configuration - -# Copyright 2021 The Chromium OS Authors -# SPDX-License-Identifier: Apache-2.0 - -if BOARD_STM32G081B_EVAL - -config BOARD - default "stm32g081b_eval" - -endif # BOARD_STM32G081B_EVAL diff --git a/boards/boards_legacy/arm/stm32g081b_eval/Kconfig.board b/boards/st/stm32g081b_eval/Kconfig.stm32g081b_eval similarity index 50% rename from boards/boards_legacy/arm/stm32g081b_eval/Kconfig.board rename to boards/st/stm32g081b_eval/Kconfig.stm32g081b_eval index 2f2299670f52094..0448edcd135d926 100644 --- a/boards/boards_legacy/arm/stm32g081b_eval/Kconfig.board +++ b/boards/st/stm32g081b_eval/Kconfig.stm32g081b_eval @@ -1,8 +1,5 @@ -# STM32G081B Evaluation board configuration - # Copyright 2021 The Chromium OS Authors # SPDX-License-Identifier: Apache-2.0 config BOARD_STM32G081B_EVAL - bool "STM32G081B Evaluation Board" - depends on SOC_STM32G081XX + select SOC_STM32G081XX diff --git a/boards/boards_legacy/arm/stm32g081b_eval/board.cmake b/boards/st/stm32g081b_eval/board.cmake similarity index 100% rename from boards/boards_legacy/arm/stm32g081b_eval/board.cmake rename to boards/st/stm32g081b_eval/board.cmake diff --git a/boards/st/stm32g081b_eval/board.yml b/boards/st/stm32g081b_eval/board.yml new file mode 100644 index 000000000000000..5cdb22ef9b8754d --- /dev/null +++ b/boards/st/stm32g081b_eval/board.yml @@ -0,0 +1,5 @@ +board: + name: stm32g081b_eval + vendor: st + socs: + - name: stm32g081xx diff --git a/boards/boards_legacy/arm/stm32g081b_eval/doc/img/stm32g081b_eval.jpg b/boards/st/stm32g081b_eval/doc/img/stm32g081b_eval.jpg similarity index 100% rename from boards/boards_legacy/arm/stm32g081b_eval/doc/img/stm32g081b_eval.jpg rename to boards/st/stm32g081b_eval/doc/img/stm32g081b_eval.jpg diff --git a/boards/boards_legacy/arm/stm32g081b_eval/doc/index.rst b/boards/st/stm32g081b_eval/doc/index.rst similarity index 100% rename from boards/boards_legacy/arm/stm32g081b_eval/doc/index.rst rename to boards/st/stm32g081b_eval/doc/index.rst diff --git a/boards/boards_legacy/arm/stm32g081b_eval/stm32g081b_eval.dts b/boards/st/stm32g081b_eval/stm32g081b_eval.dts similarity index 100% rename from boards/boards_legacy/arm/stm32g081b_eval/stm32g081b_eval.dts rename to boards/st/stm32g081b_eval/stm32g081b_eval.dts diff --git a/boards/boards_legacy/arm/stm32g081b_eval/stm32g081b_eval.yaml b/boards/st/stm32g081b_eval/stm32g081b_eval.yaml similarity index 100% rename from boards/boards_legacy/arm/stm32g081b_eval/stm32g081b_eval.yaml rename to boards/st/stm32g081b_eval/stm32g081b_eval.yaml diff --git a/boards/boards_legacy/arm/stm32g081b_eval/stm32g081b_eval_defconfig b/boards/st/stm32g081b_eval/stm32g081b_eval_defconfig similarity index 85% rename from boards/boards_legacy/arm/stm32g081b_eval/stm32g081b_eval_defconfig rename to boards/st/stm32g081b_eval/stm32g081b_eval_defconfig index cccb164bbcde7f4..2554c25669715ee 100644 --- a/boards/boards_legacy/arm/stm32g081b_eval/stm32g081b_eval_defconfig +++ b/boards/st/stm32g081b_eval/stm32g081b_eval_defconfig @@ -2,9 +2,6 @@ # # SPDX-License-Identifier: Apache-2.0 -CONFIG_SOC_SERIES_STM32G0X=y -CONFIG_SOC_STM32G081XX=y - # Serial Drivers CONFIG_SERIAL=y CONFIG_UART_INTERRUPT_DRIVEN=y