Commit 5d4595db authored by Randy Dunlap's avatar Randy Dunlap Committed by Palmer Dabbelt

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: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent 21ccdccd
......@@ -140,3 +140,13 @@ install zinstall:
archclean:
$(Q)$(MAKE) $(clean)=$(boot)
PHONY += rv32_randconfig
rv32_randconfig:
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/riscv/configs/32-bit.config \
-f $(srctree)/Makefile randconfig
PHONY += rv64_randconfig
rv64_randconfig:
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/riscv/configs/64-bit.config \
-f $(srctree)/Makefile randconfig
CONFIG_ARCH_RV32I=y
CONFIG_32BIT=y
CONFIG_ARCH_RV64I=y
CONFIG_64BIT=y
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment