riscv: add rv32 and rv64 randconfig build targets
PATCH 1/1 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
arch/riscv/Makefile | 10 ++++++++++ arch/riscv/configs/32-bit.config | 2 ++ arch/riscv/configs/64-bit.config | 2 ++ 3 files changed, 14 insertions(+)
arch/riscv/Makefile +10 -0
@@ -132,3 +132,13 @@ zinstall install: 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
arch/riscv/configs/32-bit.config new file +2 -0
@@ -0,0 +1,2 @@ +CONFIG_ARCH_RV32I=y +CONFIG_32BIT=y
arch/riscv/configs/64-bit.config new file +2 -0
@@ -0,0 +1,2 @@ +CONFIG_ARCH_RV64I=y +CONFIG_64BIT=y
Hi,
Any comments on this patch?
thanks.
Quoted 48 lines · Randy Dunlap
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=riscvrv32_randconfig
or
make ARCH=riscvrv64_randconfigCc Michael Ellerman <[email protected]>Cc Paul Walmsley <[email protected]>Cc Palmer Dabbelt <[email protected]>Cc Albert Ou <[email protected]>arch/riscv/Makefile | 10 ++++++++++ arch/riscv/configs/32-bit.config | 2 ++ arch/riscv/configs/64-bit.config | 2 ++ 3 files changed, 14 insertions(+)arch/riscv/Makefile +10
-0@@ -132,3 +132,13 @@ zinstall install: 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 randconfigarch/riscv/configs/32-bit.config new file +2
-0@@ -0,0 +1,2 @@ +CONFIG_ARCH_RV32I=y +CONFIG_32BIT=yarch/riscv/configs/64-bit.config new file +2
-0@@ -0,0 +1,2 @@ +CONFIG_ARCH_RV64I=y +CONFIG_64BIT=y
Signature · 1 line
~Randy
Palmer Dabbelt
maintainerQuoted 2 lines · On Thu, 12 Aug 2021 07:29:30 PDT (-0700), [email protected] wrote:
Hi,
Any comments on this patch?
Sorry, I must have missed this one. It looks great, it's just that I don't see your Signed-off-by on the original patch.
Quoted 51 lines
thanks.
Quoted 48 lines · Randy Dunlap
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=riscvrv32_randconfig
or
make ARCH=riscvrv64_randconfigCc Michael Ellerman <[email protected]>Cc Paul Walmsley <[email protected]>Cc Palmer Dabbelt <[email protected]>Cc Albert Ou <[email protected]>arch/riscv/Makefile | 10 ++++++++++ arch/riscv/configs/32-bit.config | 2 ++ arch/riscv/configs/64-bit.config | 2 ++ 3 files changed, 14 insertions(+)arch/riscv/Makefile +10
-0@@ -132,3 +132,13 @@ zinstall install: 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 randconfigarch/riscv/configs/32-bit.config new file +2
-0@@ -0,0 +1,2 @@ +CONFIG_ARCH_RV32I=y +CONFIG_32BIT=yarch/riscv/configs/64-bit.config new file +2
-0@@ -0,0 +1,2 @@ +CONFIG_ARCH_RV64I=y +CONFIG_64BIT=y
Quoted 7 lines · Palmer Dabbelt
Quoted 2 lines · On Thu, 12 Aug 2021 07:29:30 PDT (-0700), [email protected] wrote:
Hi,
Any comments on this patch?Sorry, I must have missed this one. It looks great, it's just that I don't see your Signed-off-by on the original patch.
Quoted 1 line
thanks.
Hi Palmer,
I sent a v2 with the missing S-o-b:
https://lore.kernel.org/all/[email protected]/
Signature · 1 line
~Randy