summaryrefslogtreecommitdiff
path: root/arch/riscv/configs
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2021-09-12 06:45:38 +0300
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-10-05 03:46:02 +0300
commit5d4595db0e1ca4c7fbe9c6870007df3578d1a20b (patch)
tree4166b1fdf163047c237971ec32df84d706e5d08a /arch/riscv/configs
parent21ccdccd21e4b0efc92fd95c9a99673c455838f0 (diff)
downloadlinux-5d4595db0e1ca4c7fbe9c6870007df3578d1a20b.tar.xz
riscv: add rv32 and rv64 randconfig build targets
Add the ability to do randconfig build targets for both rv32 and rv64. Based on a similar patch by Michael Ellerman for PowerPC. Usage: make ARCH=riscv rv32_randconfig or make ARCH=riscv rv64_randconfig Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/configs')
-rw-r--r--arch/riscv/configs/32-bit.config2
-rw-r--r--arch/riscv/configs/64-bit.config2
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv/configs/32-bit.config b/arch/riscv/configs/32-bit.config
new file mode 100644
index 000000000000..43f41323b67e
--- /dev/null
+++ b/arch/riscv/configs/32-bit.config
@@ -0,0 +1,2 @@
+CONFIG_ARCH_RV32I=y
+CONFIG_32BIT=y
diff --git a/arch/riscv/configs/64-bit.config b/arch/riscv/configs/64-bit.config
new file mode 100644
index 000000000000..313edc554d84
--- /dev/null
+++ b/arch/riscv/configs/64-bit.config
@@ -0,0 +1,2 @@
+CONFIG_ARCH_RV64I=y
+CONFIG_64BIT=y