summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-05-27 10:37:24 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-06-09 02:08:18 -0400
commitbd305f259cd33f6cd550e479d0a0a856cd8b7941 (patch)
treeb5af09fac7dabb6eca2b0e7dfdca62862f358705
parent5533397d1ec83d749067794f54283890e38ff0c1 (diff)
kconfig: make arch/*/configs/defconfig the default of KBUILD_DEFCONFIG
Until recently, if KBUILD_DEFCONFIG was not set by the arch Makefile, the default path arch/*/defconfig was used. The last users of the default are gone by the following commits: - Commit f3e20ad67b4c ("s390: move arch/s390/defconfig to arch/s390/configs/defconfig") - Commit 986a13769c4b ("alpha: move arch/alpha/defconfig to arch/alpha/configs/defconfig") Let's set arch/*/configs/defconfig as a new default. This saves KBUILD_DEFCONFIG for some architectures. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--arch/alpha/Makefile2
-rw-r--r--arch/arm64/Makefile2
-rw-r--r--arch/csky/Makefile1
-rw-r--r--arch/nds32/Makefile2
-rw-r--r--arch/riscv/Makefile2
-rw-r--r--arch/s390/Makefile2
-rw-r--r--scripts/kconfig/Makefile4
7 files changed, 4 insertions, 11 deletions
diff --git a/arch/alpha/Makefile b/arch/alpha/Makefile
index b3314e0dcb6f..12dee59b011c 100644
--- a/arch/alpha/Makefile
+++ b/arch/alpha/Makefile
@@ -8,8 +8,6 @@
8# Copyright (C) 1994 by Linus Torvalds 8# Copyright (C) 1994 by Linus Torvalds
9# 9#
10 10
11KBUILD_DEFCONFIG := defconfig
12
13NM := $(NM) -B 11NM := $(NM) -B
14 12
15LDFLAGS_vmlinux := -static -N #-relax 13LDFLAGS_vmlinux := -static -N #-relax
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index 8fbd583b18e1..7a45899db25b 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -30,8 +30,6 @@ LDFLAGS_vmlinux += --fix-cortex-a53-843419
30 endif 30 endif
31endif 31endif
32 32
33KBUILD_DEFCONFIG := defconfig
34
35# Check for binutils support for specific extensions 33# Check for binutils support for specific extensions
36lseinstr := $(call as-instr,.arch_extension lse,-DCONFIG_AS_LSE=1) 34lseinstr := $(call as-instr,.arch_extension lse,-DCONFIG_AS_LSE=1)
37 35
diff --git a/arch/csky/Makefile b/arch/csky/Makefile
index f9aab9157c4a..fb1bbbd91954 100644
--- a/arch/csky/Makefile
+++ b/arch/csky/Makefile
@@ -1,7 +1,6 @@
1# SPDX-License-Identifier: GPL-2.0-only 1# SPDX-License-Identifier: GPL-2.0-only
2OBJCOPYFLAGS :=-O binary 2OBJCOPYFLAGS :=-O binary
3GZFLAGS :=-9 3GZFLAGS :=-9
4KBUILD_DEFCONFIG := defconfig
5 4
6ifdef CONFIG_CPU_HAS_FPU 5ifdef CONFIG_CPU_HAS_FPU
7FPUEXT = f 6FPUEXT = f
diff --git a/arch/nds32/Makefile b/arch/nds32/Makefile
index 14dab5ad88ef..ccdca7142020 100644
--- a/arch/nds32/Makefile
+++ b/arch/nds32/Makefile
@@ -2,8 +2,6 @@
2LDFLAGS_vmlinux := --no-undefined -X 2LDFLAGS_vmlinux := --no-undefined -X
3OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -S 3OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -S
4 4
5KBUILD_DEFCONFIG := defconfig
6
7ifdef CONFIG_FUNCTION_TRACER 5ifdef CONFIG_FUNCTION_TRACER
8arch-y += -malways-save-lp -mno-relax 6arch-y += -malways-save-lp -mno-relax
9endif 7endif
diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
index 6b0741c9f348..f8b3b07e4247 100644
--- a/arch/riscv/Makefile
+++ b/arch/riscv/Makefile
@@ -16,8 +16,6 @@ endif
16KBUILD_AFLAGS_MODULE += -fPIC 16KBUILD_AFLAGS_MODULE += -fPIC
17KBUILD_CFLAGS_MODULE += -fPIC 17KBUILD_CFLAGS_MODULE += -fPIC
18 18
19KBUILD_DEFCONFIG = defconfig
20
21export BITS 19export BITS
22ifeq ($(CONFIG_ARCH_RV64I),y) 20ifeq ($(CONFIG_ARCH_RV64I),y)
23 BITS := 64 21 BITS := 64
diff --git a/arch/s390/Makefile b/arch/s390/Makefile
index de8521fc9de5..df1d6a150f30 100644
--- a/arch/s390/Makefile
+++ b/arch/s390/Makefile
@@ -10,8 +10,6 @@
10# Copyright (C) 1994 by Linus Torvalds 10# Copyright (C) 1994 by Linus Torvalds
11# 11#
12 12
13KBUILD_DEFCONFIG := defconfig
14
15LD_BFD := elf64-s390 13LD_BFD := elf64-s390
16KBUILD_LDFLAGS := -m elf64_s390 14KBUILD_LDFLAGS := -m elf64_s390
17KBUILD_AFLAGS_MODULE += -fPIC 15KBUILD_AFLAGS_MODULE += -fPIC
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 059642bd6584..ab30fe724c43 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -12,6 +12,10 @@ else
12Kconfig := Kconfig 12Kconfig := Kconfig
13endif 13endif
14 14
15ifndef KBUILD_DEFCONFIG
16KBUILD_DEFCONFIG := defconfig
17endif
18
15ifeq ($(quiet),silent_) 19ifeq ($(quiet),silent_)
16silent := -s 20silent := -s
17endif 21endif