All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] riscv: add rv32 and rv64 randconfig build targets
@ 2021-09-12  3:45 ` Randy Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2021-09-12  3:45 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Michael Ellerman, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, linux-riscv

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>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: linux-riscv@lists.infradead.org
---
v2: add missing S-o-b

 arch/riscv/Makefile              |   10 ++++++++++
 arch/riscv/configs/32-bit.config |    2 ++
 arch/riscv/configs/64-bit.config |    2 ++
 3 files changed, 14 insertions(+)

--- linux-next-20210910.orig/arch/riscv/Makefile
+++ linux-next-20210910/arch/riscv/Makefile
@@ -141,3 +141,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
--- /dev/null
+++ linux-next-20210910/arch/riscv/configs/32-bit.config
@@ -0,0 +1,2 @@
+CONFIG_ARCH_RV32I=y
+CONFIG_32BIT=y
--- /dev/null
+++ linux-next-20210910/arch/riscv/configs/64-bit.config
@@ -0,0 +1,2 @@
+CONFIG_ARCH_RV64I=y
+CONFIG_64BIT=y

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

* [PATCH v2] riscv: add rv32 and rv64 randconfig build targets
@ 2021-09-12  3:45 ` Randy Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2021-09-12  3:45 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Michael Ellerman, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, linux-riscv

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>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: linux-riscv@lists.infradead.org
---
v2: add missing S-o-b

 arch/riscv/Makefile              |   10 ++++++++++
 arch/riscv/configs/32-bit.config |    2 ++
 arch/riscv/configs/64-bit.config |    2 ++
 3 files changed, 14 insertions(+)

--- linux-next-20210910.orig/arch/riscv/Makefile
+++ linux-next-20210910/arch/riscv/Makefile
@@ -141,3 +141,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
--- /dev/null
+++ linux-next-20210910/arch/riscv/configs/32-bit.config
@@ -0,0 +1,2 @@
+CONFIG_ARCH_RV32I=y
+CONFIG_32BIT=y
--- /dev/null
+++ linux-next-20210910/arch/riscv/configs/64-bit.config
@@ -0,0 +1,2 @@
+CONFIG_ARCH_RV64I=y
+CONFIG_64BIT=y

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

* Re: [PATCH v2] riscv: add rv32 and rv64 randconfig build targets
  2021-09-12  3:45 ` Randy Dunlap
@ 2021-10-05  0:57   ` Palmer Dabbelt
  -1 siblings, 0 replies; 4+ messages in thread
From: Palmer Dabbelt @ 2021-10-05  0:57 UTC (permalink / raw)
  To: rdunlap; +Cc: linux-kernel, rdunlap, mpe, Paul Walmsley, aou, linux-riscv

On Sat, 11 Sep 2021 20:45:38 PDT (-0700), rdunlap@infradead.org wrote:
> 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>
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> Cc: Paul Walmsley <paul.walmsley@sifive.com>
> Cc: Palmer Dabbelt <palmer@dabbelt.com>
> Cc: Albert Ou <aou@eecs.berkeley.edu>
> Cc: linux-riscv@lists.infradead.org
> ---
> v2: add missing S-o-b
>
>  arch/riscv/Makefile              |   10 ++++++++++
>  arch/riscv/configs/32-bit.config |    2 ++
>  arch/riscv/configs/64-bit.config |    2 ++
>  3 files changed, 14 insertions(+)
>
> --- linux-next-20210910.orig/arch/riscv/Makefile
> +++ linux-next-20210910/arch/riscv/Makefile
> @@ -141,3 +141,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
> --- /dev/null
> +++ linux-next-20210910/arch/riscv/configs/32-bit.config
> @@ -0,0 +1,2 @@
> +CONFIG_ARCH_RV32I=y
> +CONFIG_32BIT=y
> --- /dev/null
> +++ linux-next-20210910/arch/riscv/configs/64-bit.config
> @@ -0,0 +1,2 @@
> +CONFIG_ARCH_RV64I=y
> +CONFIG_64BIT=y

Thanks, this is on for-next.

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

* Re: [PATCH v2] riscv: add rv32 and rv64 randconfig build targets
@ 2021-10-05  0:57   ` Palmer Dabbelt
  0 siblings, 0 replies; 4+ messages in thread
From: Palmer Dabbelt @ 2021-10-05  0:57 UTC (permalink / raw)
  To: rdunlap; +Cc: linux-kernel, rdunlap, mpe, Paul Walmsley, aou, linux-riscv

On Sat, 11 Sep 2021 20:45:38 PDT (-0700), rdunlap@infradead.org wrote:
> 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>
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> Cc: Paul Walmsley <paul.walmsley@sifive.com>
> Cc: Palmer Dabbelt <palmer@dabbelt.com>
> Cc: Albert Ou <aou@eecs.berkeley.edu>
> Cc: linux-riscv@lists.infradead.org
> ---
> v2: add missing S-o-b
>
>  arch/riscv/Makefile              |   10 ++++++++++
>  arch/riscv/configs/32-bit.config |    2 ++
>  arch/riscv/configs/64-bit.config |    2 ++
>  3 files changed, 14 insertions(+)
>
> --- linux-next-20210910.orig/arch/riscv/Makefile
> +++ linux-next-20210910/arch/riscv/Makefile
> @@ -141,3 +141,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
> --- /dev/null
> +++ linux-next-20210910/arch/riscv/configs/32-bit.config
> @@ -0,0 +1,2 @@
> +CONFIG_ARCH_RV32I=y
> +CONFIG_32BIT=y
> --- /dev/null
> +++ linux-next-20210910/arch/riscv/configs/64-bit.config
> @@ -0,0 +1,2 @@
> +CONFIG_ARCH_RV64I=y
> +CONFIG_64BIT=y

Thanks, this is on for-next.

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

end of thread, other threads:[~2021-10-05  0:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-12  3:45 [PATCH v2] riscv: add rv32 and rv64 randconfig build targets Randy Dunlap
2021-09-12  3:45 ` Randy Dunlap
2021-10-05  0:57 ` Palmer Dabbelt
2021-10-05  0:57   ` Palmer Dabbelt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.