From: Masahiro Yamada <yamada.masahiro@socionext.com>
To: barebox@lists.infradead.org
Subject: [PATCH] arch: add KBUILD_DEFCONFIG to allow "make defconfig"
Date: Sat, 11 May 2019 11:05:08 +0900 [thread overview]
Message-ID: <1557540308-10843-1-git-send-email-yamada.masahiro@socionext.com> (raw)
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
next reply other threads:[~2019-05-11 2:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-11 2:05 Masahiro Yamada [this message]
2019-05-13 12:17 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1557540308-10843-1-git-send-email-yamada.masahiro@socionext.com \
--to=yamada.masahiro@socionext.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox