[U-Boot] [PATCH 09/30] riscv: move target selection into separate file

Lukas Auer lukas.auer at aisec.fraunhofer.de
Fri Oct 19 22:07:22 UTC 2018


Move the target selection into a separate file (Kconfig.board) to avoid
clutter once we support more boards.

Signed-off-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
---

 arch/riscv/Kconfig       | 17 ++---------------
 arch/riscv/Kconfig.board | 14 ++++++++++++++
 2 files changed, 16 insertions(+), 15 deletions(-)
 create mode 100644 arch/riscv/Kconfig.board

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index ce07fb4b55..10d17a0e18 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -4,21 +4,6 @@ menu "RISC-V architecture"
 config SYS_ARCH
 	default "riscv"
 
-choice
-	prompt "Target select"
-	optional
-
-config TARGET_AX25_AE350
-	bool "Support ax25-ae350"
-
-config TARGET_QEMU_VIRT
-	bool "Support QEMU Virt Board"
-
-endchoice
-
-source "board/AndesTech/ax25-ae350/Kconfig"
-source "board/emulation/qemu-riscv/Kconfig"
-
 choice
 	prompt "Base ISA"
 	default ARCH_RV32I
@@ -72,4 +57,6 @@ config 32BIT
 config 64BIT
 	bool
 
+source "arch/riscv/Kconfig.board"
+
 endmenu
diff --git a/arch/riscv/Kconfig.board b/arch/riscv/Kconfig.board
new file mode 100644
index 0000000000..fcada760c8
--- /dev/null
+++ b/arch/riscv/Kconfig.board
@@ -0,0 +1,14 @@
+choice
+	prompt "Target select"
+	optional
+
+config TARGET_AX25_AE350
+	bool "Support ax25-ae350"
+
+config TARGET_QEMU_VIRT
+	bool "Support QEMU Virt Board"
+
+endchoice
+
+source "board/AndesTech/ax25-ae350/Kconfig"
+source "board/emulation/qemu-riscv/Kconfig"
-- 
2.17.2



More information about the U-Boot mailing list