kbuild: add dtbs_check to PHONY
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Feb 2020 19:04:33 +0000 (04:04 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 26 Feb 2020 17:26:01 +0000 (02:26 +0900)
The dtbs_check should be a phony target, but currently it is not
specified so.

'make dtbs_check' works even if a file named 'dtbs_check' exists
because it depends on another phony target, scripts_dtc, but we
should not rely on it.

Add dtbs_check to PHONY.

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

index 2afa692b39ff0312a9a527588898e81d8e56400d..51df1359921106e97168808f0754f4d95b59a229 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 dt_binding_check
+PHONY += dtbs dtbs_install dtbs_check dt_binding_check
 dtbs dtbs_check: include/config/kernel.release scripts_dtc
        $(Q)$(MAKE) $(build)=$(dtstree)