blob: 4aeb5f6b1405afa6882d2c6379ddb281e4f96f6e [file] [log] [blame]
ifeq ($(CONFIG_OF),y)
ALL_DTS := $(notdir $(wildcard echo $(srctree)/$(src)/*.dts))
dtb-y += $(patsubst %.dts,%.dtb,$(ALL_DTS))
DTB_NAMES := $(subst $\",,$(CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES))
ifneq ($(DTB_NAMES),)
DTB_LIST := $(addsuffix .dtb,$(DTB_NAMES))
else
DTB_LIST := $(dtb-y)
endif
targets += dtbs
targets += $(addprefix ../, $(DTB_LIST))
endif
$(obj)/../%.dtb: $(src)/%.dts FORCE
$(call if_changed_dep,dtc)
dtbs: $(addprefix $(obj)/../,$(DTB_LIST))
clean-files := *.dtb