dt-bindings: kbuild: Fix dt_binding_check on unconfigured build
authorRob Herring (Arm) <robh@kernel.org>
Tue, 28 May 2024 20:02:32 +0000 (15:02 -0500)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 29 May 2024 16:15:58 +0000 (01:15 +0900)
The 'dt_binding_check' target shouldn't depend on the kernel
configuration, but it has since commit 604a57ba9781 ("dt-bindings:
kbuild: Add separate target/dependency for processed-schema.json").
That is because CHECK_DT_BINDING make variable was dropped, but
scripts/dtc/Makefile was missed. The CHECK_DTBS variable can be used
instead.

Reported-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Fixes: 604a57ba9781 ("dt-bindings: kbuild: Add separate target/dependency for processed-schema.json")
Signed-off-by: "Rob Herring (Arm)" <robh@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/dtc/Makefile

index a186570725412f80f4d89df7ebd190ee5e8c01ab..b47f4daa4515dfa9ac5010a29968eeda7a177ca7 100644 (file)
@@ -3,7 +3,7 @@
 
 # *** Also keep .gitignore in sync when changing ***
 hostprogs-always-$(CONFIG_DTC)         += dtc fdtoverlay
-hostprogs-always-$(CHECK_DT_BINDING)   += dtc
+hostprogs-always-$(CHECK_DTBS)         += dtc
 
 dtc-objs       := dtc.o flattree.o fstree.o data.o livetree.o treesource.o \
                   srcpos.o checks.o util.o