Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] arch: riscv: Add a RISC-V Platform option
@ 2019-03-15 23:06 Alistair Francis
  2019-03-15 23:06 ` [Buildroot] [PATCH 2/3] boot: riscv: Initial commit of OpenSBI Alistair Francis
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Alistair Francis @ 2019-03-15 23:06 UTC (permalink / raw)
  To: buildroot

Add a RISC-V Platform option. At the moment only QEMU platforms are
supported, but in the future this can be extended to include real
hardware platforms (such as the Unleashed board).

My goal is that this platform will set default config options (such as
the default defconfig for the kernel) based on the platform value.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
 arch/Config.in.riscv | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/Config.in.riscv b/arch/Config.in.riscv
index 097719e846..c97fa5b703 100644
--- a/arch/Config.in.riscv
+++ b/arch/Config.in.riscv
@@ -108,6 +108,22 @@ config BR2_RISCV_ABI_LP64D
 	depends on BR2_ARCH_IS_64 && BR2_RISCV_ISA_RVD
 endchoice
 
+choice
+	prompt "Target Platform"
+	default BR2_RISCV_QEMU_VIRT
+	help
+	  The RISC-V Platform to target.
+
+config BR2_RISCV_QEMU_VIRT
+	bool "qemu/virt"
+
+config BR2_RISCV_QEMU_SIFIVE_U
+	bool "qemu/sifive_u"
+
+config BR2_RISCV_UNKNOWN
+	bool "unknown"
+endchoice
+
 config BR2_ARCH
 	default "riscv32" if !BR2_ARCH_IS_64
 	default "riscv64" if BR2_ARCH_IS_64
-- 
2.21.0

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-03-19 10:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-15 23:06 [Buildroot] [PATCH 1/3] arch: riscv: Add a RISC-V Platform option Alistair Francis
2019-03-15 23:06 ` [Buildroot] [PATCH 2/3] boot: riscv: Initial commit of OpenSBI Alistair Francis
2019-03-16  7:41   ` Thomas Petazzoni
2019-03-18 20:36     ` Alistair Francis
2019-03-18 20:46       ` Thomas Petazzoni
2019-03-18 21:02         ` Alistair Francis
2019-03-15 23:06 ` [Buildroot] [PATCH 3/3] boot: riscv: Remove riscv-pk Alistair Francis
2019-03-16  7:43   ` Thomas Petazzoni
2019-03-18 10:45     ` Mark Corbin
2019-03-18 17:51       ` Alistair Francis
2019-03-19 10:35         ` Mark Corbin
2019-03-18 17:46     ` Alistair Francis
2019-03-16  7:36 ` [Buildroot] [PATCH 1/3] arch: riscv: Add a RISC-V Platform option Thomas Petazzoni
2019-03-18 20:30   ` Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox