Skip to content

Commit fc2694e

Browse files
committed
kconfig: use 'else ifneq' for Makefile to improve readability
'ifeq ... else ifneq ... endif' notation is supported by GNU Make 3.81 or later, which is the requirement for building the kernel since commit 37d69ee ("docs: bump minimal GNU Make version to 3.81"). Use it to improve the readability. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 3a48a91 commit fc2694e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/kconfig/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,13 @@ savedefconfig: $(obj)/conf
7676
defconfig: $(obj)/conf
7777
ifeq ($(KBUILD_DEFCONFIG),)
7878
$< $(silent) --defconfig $(Kconfig)
79-
else
80-
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
79+
else ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
8180
@$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
8281
$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
8382
else
8483
@$(kecho) "*** Default configuration is based on target '$(KBUILD_DEFCONFIG)'"
8584
$(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG)
8685
endif
87-
endif
8886

8987
%_defconfig: $(obj)/conf
9088
$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)

0 commit comments

Comments
 (0)