kbuild: consolidate Devicetree dtb build rules
[muen/linux.git] / scripts / dtc / Makefile
index 1c943e03eaf2f838dee90edc7e908476f3b2eced..e535b457babbf20b5177a09fe80dfea7548f84e0 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 # scripts/dtc makefile
 
-hostprogs-y    := dtc
+hostprogs-$(CONFIG_DTC) := dtc
 always         := $(hostprogs-y)
 
 dtc-objs       := dtc.o flattree.o fstree.o data.o livetree.o treesource.o \