[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <mhng-88e4dc9f-726f-4229-942b-083c9bdb61f8@palmerdabbelt-glaptop>
Date: Mon, 04 Oct 2021 17:57:38 -0700 (PDT)
From: Palmer Dabbelt <palmer@...belt.com>
To: rdunlap@...radead.org
CC: linux-kernel@...r.kernel.org, rdunlap@...radead.org,
mpe@...erman.id.au, Paul Walmsley <paul.walmsley@...ive.com>,
aou@...s.berkeley.edu, linux-riscv@...ts.infradead.org
Subject: Re: [PATCH v2] riscv: add rv32 and rv64 randconfig build targets
On Sat, 11 Sep 2021 20:45:38 PDT (-0700), rdunlap@...radead.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@...radead.org>
> Cc: Michael Ellerman <mpe@...erman.id.au>
> Cc: Paul Walmsley <paul.walmsley@...ive.com>
> Cc: Palmer Dabbelt <palmer@...belt.com>
> Cc: Albert Ou <aou@...s.berkeley.edu>
> Cc: linux-riscv@...ts.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.
Powered by blists - more mailing lists