]> git.baikalelectronics.ru Git - kernel.git/commitdiff
kbuild: add dt_binding_check to PHONY in a correct place
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Feb 2020 19:04:34 +0000 (04:04 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 26 Feb 2020 17:28:15 +0000 (02:28 +0900)
The dt_binding_check is added to PHONY, but it is invisible when
$(dtstree) is empty. So, it is not specified as phony for
ARCH=x86 etc.

Add it to PHONY outside the ifneq ... endif block.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
Makefile

index 51df1359921106e97168808f0754f4d95b59a229..1a1a0d271697acde4a407cb7220c0644eaab451e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1239,7 +1239,7 @@ ifneq ($(dtstree),)
 %.dtb: include/config/kernel.release scripts_dtc
        $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
 
-PHONY += dtbs dtbs_install dtbs_check dt_binding_check
+PHONY += dtbs dtbs_install dtbs_check
 dtbs dtbs_check: include/config/kernel.release scripts_dtc
        $(Q)$(MAKE) $(build)=$(dtstree)
 
@@ -1259,6 +1259,7 @@ PHONY += scripts_dtc
 scripts_dtc: scripts_basic
        $(Q)$(MAKE) $(build)=scripts/dtc
 
+PHONY += dt_binding_check
 dt_binding_check: scripts_dtc
        $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings