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

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