Puja Gupta | 7900b19 | 2017-02-10 14:52:32 -0800 | [diff] [blame] | 1 | __dtbo := $(sort $(dtbo-y)) |
| 2 | |
| 3 | dtbo-base := $(sort $(foreach m,$(__dtbo),$($(m)-base))) |
| 4 | dtbo := $(foreach m,$(__dtbo),$(if $($(m)-base),$(m))) |
| 5 | |
| 6 | __dtbo := $(addprefix $(obj)/,$(__dtbo)) |
| 7 | dtbo-base := $(addprefix $(obj)/,$(dtbo-base)) |
| 8 | dtbo := $(addprefix $(obj)/,$(dtbo)) |
| 9 | |
| 10 | ifneq ($(DTC_OVERLAY_TEST_EXT),) |
| 11 | DTC_OVERLAY_TEST = $(DTC_OVERLAY_TEST_EXT) |
| 12 | quiet_cmd_dtbo_verify = VERIFY $@ |
Maria Yu | 0e53861 | 2017-11-24 16:47:36 +0800 | [diff] [blame] | 13 | cmd_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 Gupta | 7900b19 | 2017-02-10 14:52:32 -0800 | [diff] [blame] | 19 | else |
| 20 | cmd_dtbo_verify = true |
| 21 | endif |
| 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 | |
| 29 | always += $(dtbo) |