summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-05-11 11:05:08 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-13 14:16:31 +0200
commit4ce32536211a898dd176c2de6d7d131727378b14 (patch)
treefb4f4baced6a7ad6e2e5eb14d95e26f755e08d8a /arch
parentb0a89d8086577ee0b8d9eb81d7fdd07e8f7662dd (diff)
downloadbarebox-4ce32536211a898dd176c2de6d7d131727378b14.tar.gz
barebox-4ce32536211a898dd176c2de6d7d131727378b14.tar.xz
arch: add KBUILD_DEFCONFIG to allow "make defconfig"
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> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/Makefile1
-rw-r--r--arch/blackfin/Makefile1
-rw-r--r--arch/mips/Makefile2
-rw-r--r--arch/nios2/Makefile2
-rw-r--r--arch/openrisc/Makefile2
5 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 0daaff2a07..4d54f339f1 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 381c6a9f39..5c43bf7d71 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 6f1a1ce617..ee465dc8e9 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 3e97155e7c..0dff0bed35 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 b0c8566e4e..5394afb7f0 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