summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-10-10 00:05:39 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-10-19 09:48:47 +0900
commit7d0ea2524202db5cb3f5bde9c0cdd6dea61bc0e3 (patch)
treec8956155c04902790cf1180a0e07002876d3f42f /scripts/Makefile.build
parent69ea912fda74a673d330d23595385e5b73e3a2b9 (diff)
downloadblackbird-op-linux-7d0ea2524202db5cb3f5bde9c0cdd6dea61bc0e3.tar.gz
blackbird-op-linux-7d0ea2524202db5cb3f5bde9c0cdd6dea61bc0e3.zip
kbuild: use 'else ifeq' for checksrc to improve readability
'ifeq ... else ifeq ... endif' notation is supported by GNU Make 3.81 or later, which is the requirement for building the kernel since commit 37d69ee30808 ("docs: bump minimal GNU Make version to 3.81"). Use it to improve the readability. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build14
1 files changed, 6 insertions, 8 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index f21b48d4a8f2..7d884d8f37ff 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -73,14 +73,12 @@ __build: $(if $(KBUILD_BUILTIN),$(builtin-target) $(lib-target) $(extra-y)) \
@:
# Linus' kernel sanity checking tool
-ifneq ($(KBUILD_CHECKSRC),0)
- ifeq ($(KBUILD_CHECKSRC),2)
- quiet_cmd_force_checksrc = CHECK $<
- cmd_force_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< ;
- else
- quiet_cmd_checksrc = CHECK $<
- cmd_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< ;
- endif
+ifeq ($(KBUILD_CHECKSRC),1)
+ quiet_cmd_checksrc = CHECK $<
+ cmd_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< ;
+else ifeq ($(KBUILD_CHECKSRC),2)
+ quiet_cmd_force_checksrc = CHECK $<
+ cmd_force_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< ;
endif
ifneq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),)
OpenPOWER on IntegriCloud