]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - scripts/Makefile.lib
kbuild: handle dtb-y and CONFIG_OF_ALL_DTBS natively in Makefile.lib
[thirdparty/kernel/stable.git] / scripts / Makefile.lib
index 5e975fee0f5b44343807d2f4e92954cb521497dc..09ec69d2c499b2bb2d713c7e6b68d2f8d91ab538 100644 (file)
@@ -69,6 +69,11 @@ obj-dirs := $(dir $(multi-objs) $(obj-y))
 real-objs-y := $(foreach m, $(filter-out $(subdir-obj-y), $(obj-y)), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))),$($(m:.o=-objs)) $($(m:.o=-y)),$(m))) $(extra-y)
 real-objs-m := $(foreach m, $(obj-m), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-m))),$($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-m)),$(m)))
 
+# DTB
+# If CONFIG_OF_ALL_DTBS is enabled, all DT blobs are built
+extra-y                                += $(dtb-y)
+extra-$(CONFIG_OF_ALL_DTBS)    += $(dtb-)
+
 # Add subdir path
 
 extra-y                := $(addprefix $(obj)/,$(extra-y))