diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-05-27 10:37:24 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-06-09 02:08:18 -0400 |
commit | bd305f259cd33f6cd550e479d0a0a856cd8b7941 (patch) | |
tree | b5af09fac7dabb6eca2b0e7dfdca62862f358705 | |
parent | 5533397d1ec83d749067794f54283890e38ff0c1 (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/Makefile | 2 | ||||
-rw-r--r-- | arch/arm64/Makefile | 2 | ||||
-rw-r--r-- | arch/csky/Makefile | 1 | ||||
-rw-r--r-- | arch/nds32/Makefile | 2 | ||||
-rw-r--r-- | arch/riscv/Makefile | 2 | ||||
-rw-r--r-- | arch/s390/Makefile | 2 | ||||
-rw-r--r-- | scripts/kconfig/Makefile | 4 |
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 | ||
11 | KBUILD_DEFCONFIG := defconfig | ||
12 | |||
13 | NM := $(NM) -B | 11 | NM := $(NM) -B |
14 | 12 | ||
15 | LDFLAGS_vmlinux := -static -N #-relax | 13 | LDFLAGS_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 |
31 | endif | 31 | endif |
32 | 32 | ||
33 | KBUILD_DEFCONFIG := defconfig | ||
34 | |||
35 | # Check for binutils support for specific extensions | 33 | # Check for binutils support for specific extensions |
36 | lseinstr := $(call as-instr,.arch_extension lse,-DCONFIG_AS_LSE=1) | 34 | lseinstr := $(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 |
2 | OBJCOPYFLAGS :=-O binary | 2 | OBJCOPYFLAGS :=-O binary |
3 | GZFLAGS :=-9 | 3 | GZFLAGS :=-9 |
4 | KBUILD_DEFCONFIG := defconfig | ||
5 | 4 | ||
6 | ifdef CONFIG_CPU_HAS_FPU | 5 | ifdef CONFIG_CPU_HAS_FPU |
7 | FPUEXT = f | 6 | FPUEXT = 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 @@ | |||
2 | LDFLAGS_vmlinux := --no-undefined -X | 2 | LDFLAGS_vmlinux := --no-undefined -X |
3 | OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -S | 3 | OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -S |
4 | 4 | ||
5 | KBUILD_DEFCONFIG := defconfig | ||
6 | |||
7 | ifdef CONFIG_FUNCTION_TRACER | 5 | ifdef CONFIG_FUNCTION_TRACER |
8 | arch-y += -malways-save-lp -mno-relax | 6 | arch-y += -malways-save-lp -mno-relax |
9 | endif | 7 | endif |
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 | |||
16 | KBUILD_AFLAGS_MODULE += -fPIC | 16 | KBUILD_AFLAGS_MODULE += -fPIC |
17 | KBUILD_CFLAGS_MODULE += -fPIC | 17 | KBUILD_CFLAGS_MODULE += -fPIC |
18 | 18 | ||
19 | KBUILD_DEFCONFIG = defconfig | ||
20 | |||
21 | export BITS | 19 | export BITS |
22 | ifeq ($(CONFIG_ARCH_RV64I),y) | 20 | ifeq ($(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 | ||
13 | KBUILD_DEFCONFIG := defconfig | ||
14 | |||
15 | LD_BFD := elf64-s390 | 13 | LD_BFD := elf64-s390 |
16 | KBUILD_LDFLAGS := -m elf64_s390 | 14 | KBUILD_LDFLAGS := -m elf64_s390 |
17 | KBUILD_AFLAGS_MODULE += -fPIC | 15 | KBUILD_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 | |||
12 | Kconfig := Kconfig | 12 | Kconfig := Kconfig |
13 | endif | 13 | endif |
14 | 14 | ||
15 | ifndef KBUILD_DEFCONFIG | ||
16 | KBUILD_DEFCONFIG := defconfig | ||
17 | endif | ||
18 | |||
15 | ifeq ($(quiet),silent_) | 19 | ifeq ($(quiet),silent_) |
16 | silent := -s | 20 | silent := -s |
17 | endif | 21 | endif |