mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] arch: add KBUILD_DEFCONFIG to allow "make defconfig"
@ 2019-05-11  2:05 Masahiro Yamada
  2019-05-13 12:17 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2019-05-11  2:05 UTC (permalink / raw)
  To: barebox

Currently, "make defconfig" is only supported for sandbox and x86.

I set KBUILD_DEFCONFIG to support "make defconfig" where I was able
to find a suitable one.

nios2 and openrisc have a single generic_defconfig, so it is definitely
good for KBUILD_DEFCONFIG.

For arm, mips, I assume qemu is a preferred choice over a real board.

blackfin has only one defconfig. Since it is inactive (it is gone in
Linux), so no more defconfig will come in.

I am not sure about ppc and riscv, so I did not touch them.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 arch/arm/Makefile      | 1 +
 arch/blackfin/Makefile | 1 +
 arch/mips/Makefile     | 2 ++
 arch/nios2/Makefile    | 2 ++
 arch/openrisc/Makefile | 2 ++
 5 files changed, 8 insertions(+)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 0fd6310..5d92a54 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -1,3 +1,4 @@
+KBUILD_DEFCONFIG := qemu_virt64_defconfig
 
 CPPFLAGS	+= -D__ARM__ -fno-strict-aliasing
 # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile
index 381c6a9..5c43bf7 100644
--- a/arch/blackfin/Makefile
+++ b/arch/blackfin/Makefile
@@ -1,3 +1,4 @@
+KBUILD_DEFCONFIG := ipe337_defconfig
 
 CPPFLAGS += -fno-strict-aliasing
 
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 5fbd51c..72bf92d 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -1,3 +1,5 @@
+KBUILD_DEFCONFIG := qemu-malta_defconfig
+
 #
 # Select the object file format to substitute into the linker script.
 #
diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile
index 3e97155..0dff0be 100644
--- a/arch/nios2/Makefile
+++ b/arch/nios2/Makefile
@@ -1,3 +1,5 @@
+KBUILD_DEFCONFIG := generic_defconfig
+
 CPPFLAGS += -fno-strict-aliasing -mno-hw-mul
 
 board-$(CONFIG_GENERIC) := generic
diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile
index b0c8566..5394afb 100644
--- a/arch/openrisc/Makefile
+++ b/arch/openrisc/Makefile
@@ -1,3 +1,5 @@
+KBUILD_DEFCONFIG := generic_defconfig
+
 CPPFLAGS += -D__OR1K__ -ffixed-r10 -mhard-mul -mhard-div
 
 board-$(CONFIG_GENERIC) := generic
-- 
2.7.4


_______________________________________________
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] arch: add KBUILD_DEFCONFIG to allow "make defconfig"
  2019-05-11  2:05 [PATCH] arch: add KBUILD_DEFCONFIG to allow "make defconfig" Masahiro Yamada
@ 2019-05-13 12:17 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2019-05-13 12:17 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: barebox

On Sat, May 11, 2019 at 11:05:08AM +0900, Masahiro Yamada wrote:
> Currently, "make defconfig" is only supported for sandbox and x86.
> 
> I set KBUILD_DEFCONFIG to support "make defconfig" where I was able
> to find a suitable one.
> 
> nios2 and openrisc have a single generic_defconfig, so it is definitely
> good for KBUILD_DEFCONFIG.
> 
> For arm, mips, I assume qemu is a preferred choice over a real board.
> 
> blackfin has only one defconfig. Since it is inactive (it is gone in
> Linux), so no more defconfig will come in.

Yes, blackfin is dead. I should remove it from barebox. It hasn't seen
an active commit for years now.

> 
> I am not sure about ppc and riscv, so I did not touch them.
> 
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 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:[~2019-05-13 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-11  2:05 [PATCH] arch: add KBUILD_DEFCONFIG to allow "make defconfig" Masahiro Yamada
2019-05-13 12: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