mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ppc,riscv: set something to KBUILD_DEFCONFIG
@ 2020-04-15  6:45 Masahiro Yamada
  2020-04-15  9:17 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2020-04-15  6:45 UTC (permalink / raw)
  To: barebox; +Cc: Masahiro Yamada

'make ARCH=riscv defconfig' ends up with endless recursion.
Users may get upset with it.

In Linux, every architecture does something for 'make defconfig'.
Set something to KBUILD_DEFCONFIG to make it work for riscv and ppc.

There is only one file in arch/riscv/configs/, so there is no choice
but erizo_generic_defconfig for riscv.

There are some choices for ppc, but I am not sure what is appropriate.
I just picked something.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 arch/ppc/Makefile   | 1 +
 arch/riscv/Makefile | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
index 2fb9b1442..ebf60eded 100644
--- a/arch/ppc/Makefile
+++ b/arch/ppc/Makefile
@@ -1,3 +1,4 @@
+KBUILD_DEFCONFIG := p2020rdb_defconfig
 
 CPPFLAGS += -ffixed-r14 -m32 	\
 	-meabi -D __PPC__ -D CONFIG_PPC \
diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
index 643c0bc8e..fa8a173d8 100644
--- a/arch/riscv/Makefile
+++ b/arch/riscv/Makefile
@@ -1,3 +1,5 @@
+KBUILD_DEFCONFIG := erizo_generic_defconfig
+
 CPPFLAGS += -fno-strict-aliasing
 
 ifeq ($(CONFIG_ARCH_RV32I),y)
-- 
2.25.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH] ppc,riscv: set something to KBUILD_DEFCONFIG
  2020-04-15  6:45 [PATCH] ppc,riscv: set something to KBUILD_DEFCONFIG Masahiro Yamada
@ 2020-04-15  9:17 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-04-15  9:17 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: barebox

On Wed, Apr 15, 2020 at 03:45:01PM +0900, Masahiro Yamada wrote:
> 'make ARCH=riscv defconfig' ends up with endless recursion.
> Users may get upset with it.
> 
> In Linux, every architecture does something for 'make defconfig'.
> Set something to KBUILD_DEFCONFIG to make it work for riscv and ppc.
> 
> There is only one file in arch/riscv/configs/, so there is no choice
> but erizo_generic_defconfig for riscv.
> 
> There are some choices for ppc, but I am not sure what is appropriate.
> I just picked something.
> 
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
> 
>  arch/ppc/Makefile   | 1 +
>  arch/riscv/Makefile | 2 ++
>  2 files changed, 3 insertions(+)

Applied, thanks

Sascha

> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2020-04-15  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15  6:45 [PATCH] ppc,riscv: set something to KBUILD_DEFCONFIG Masahiro Yamada
2020-04-15  9:17 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox