blob: d7938c336e251e30a10d30cba322f0c7019e4945 [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 $@
Maria Yu0e538612017-11-24 16:47:36 +080013cmd_dtbo_verify = $(foreach m,\
14 $(addprefix $(obj)/,$($(@F)-base)),\
15 $(if $(m),\
16 $(DTC_OVERLAY_TEST) $(m) $@ \
17 $(dot-target).$(patsubst $(obj)/%.dtb,%,$(m)).tmp;))\
18 true
Puja Gupta7900b192017-02-10 14:52:32 -080019else
20cmd_dtbo_verify = true
21endif
22
23$(obj)/%.dtbo: $(src)/%.dts FORCE
24 $(call if_changed_dep,dtc)
25 $(call if_changed,dtbo_verify)
26
27$(call multi_depend, $(dtbo), , -base)
28
29always += $(dtbo)