blob: db4a0f4b9a56901cdac274991c7caa50969a7340 [file] [log] [blame]
Puja Gupta7900b192017-02-10 14:52:32 -08001__dtbo := $(sort $(dtbo-y))
2
3dtbo-base := $(sort $(foreach m,$(__dtbo),$($(m)-base)))
4dtbo := $(foreach m,$(__dtbo),$(if $($(m)-base),$(m)))
5
6__dtbo := $(addprefix $(obj)/,$(__dtbo))
7dtbo-base := $(addprefix $(obj)/,$(dtbo-base))
8dtbo := $(addprefix $(obj)/,$(dtbo))
9
10ifneq ($(DTC_OVERLAY_TEST_EXT),)
11DTC_OVERLAY_TEST = $(DTC_OVERLAY_TEST_EXT)
12quiet_cmd_dtbo_verify = VERIFY $@
13cmd_dtbo_verify = $(DTC_OVERLAY_TEST) $(addprefix $(obj)/,$($(@F)-base)) $@ $(dot-target).dtb
14else
15cmd_dtbo_verify = true
16endif
17
18$(obj)/%.dtbo: $(src)/%.dts FORCE
19 $(call if_changed_dep,dtc)
20 $(call if_changed,dtbo_verify)
21
22$(call multi_depend, $(dtbo), , -base)
23
24always += $(dtbo)