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 $@ |
| 13 | cmd_dtbo_verify = $(DTC_OVERLAY_TEST) $(addprefix $(obj)/,$($(@F)-base)) $@ $(dot-target).dtb |
| 14 | else |
| 15 | cmd_dtbo_verify = true |
| 16 | endif |
| 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 | |
| 24 | always += $(dtbo) |