Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4 -11
-2
arch/alpha/Makefile
··· 8 8 # Copyright (C) 1994 by Linus Torvalds 9 9 # 10 10 11 - KBUILD_DEFCONFIG := defconfig 12 - 13 11 NM := $(NM) -B 14 12 15 13 LDFLAGS_vmlinux := -static -N #-relax
-2
arch/arm64/Makefile
··· 30 30 endif 31 31 endif 32 32 33 - KBUILD_DEFCONFIG := defconfig 34 - 35 33 # Check for binutils support for specific extensions 36 34 lseinstr := $(call as-instr,.arch_extension lse,-DCONFIG_AS_LSE=1) 37 35
-1
arch/csky/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 OBJCOPYFLAGS :=-O binary 3 3 GZFLAGS :=-9 4 - KBUILD_DEFCONFIG := defconfig 5 4 6 5 ifdef CONFIG_CPU_HAS_FPU 7 6 FPUEXT = f
-2
arch/nds32/Makefile
··· 2 2 LDFLAGS_vmlinux := --no-undefined -X 3 3 OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -S 4 4 5 - KBUILD_DEFCONFIG := defconfig 6 - 7 5 ifdef CONFIG_FUNCTION_TRACER 8 6 arch-y += -malways-save-lp -mno-relax 9 7 endif
-2
arch/riscv/Makefile
··· 16 16 KBUILD_AFLAGS_MODULE += -fPIC 17 17 KBUILD_CFLAGS_MODULE += -fPIC 18 18 19 - KBUILD_DEFCONFIG = defconfig 20 - 21 19 export BITS 22 20 ifeq ($(CONFIG_ARCH_RV64I),y) 23 21 BITS := 64
-2
arch/s390/Makefile
··· 10 10 # Copyright (C) 1994 by Linus Torvalds 11 11 # 12 12 13 - KBUILD_DEFCONFIG := defconfig 14 - 15 13 LD_BFD := elf64-s390 16 14 KBUILD_LDFLAGS := -m elf64_s390 17 15 KBUILD_AFLAGS_MODULE += -fPIC
+4
scripts/kconfig/Makefile
··· 12 12 Kconfig := Kconfig 13 13 endif 14 14 15 + ifndef KBUILD_DEFCONFIG 16 + KBUILD_DEFCONFIG := defconfig 17 + endif 18 + 15 19 ifeq ($(quiet),silent_) 16 20 silent := -s 17 21 endif