Skip to content

Commit e0a2668

Browse files
committed
kconfig: remove always false ifeq ($(KBUILD_DEFCONFIG,) conditional
With the following two commits applied, all the arch Makefiles define KBUILD_DEFCONFIG. - Commit f3e20ad ("s390: move arch/s390/defconfig to arch/s390/configs/defconfig") - Commit 986a137 ("alpha: move arch/alpha/defconfig to arch/alpha/configs/defconfig") The first conditional in the defconfig rule is always false. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent d1fdb6d commit e0a2668

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎scripts/kconfig/Makefile‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ savedefconfig: $(obj)/conf
7474
$< $(silent) --$@=defconfig $(Kconfig)
7575

7676
defconfig: $(obj)/conf
77-
ifeq ($(KBUILD_DEFCONFIG),)
78-
$< $(silent) --defconfig $(Kconfig)
79-
else ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
77+
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
8078
@$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
8179
$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
8280
else

0 commit comments

Comments
 (0)