2478b6126b
Current board device tree overlay verify only support single soc device tree dtb. Add support overlay apply verify for multi soc device tree dtb in dtbo-base. Change-Id: Idca1c57969303f701be37550da23c117cbd90470 Signed-off-by: Maria Yu <aiquny@codeaurora.org>
30 lines
789 B
Text
30 lines
789 B
Text
# SPDX-License-Identifier: GPL-2.0
|
|
__dtbo := $(sort $(dtbo-y))
|
|
|
|
dtbo-base := $(sort $(foreach m,$(__dtbo),$($(m)-base)))
|
|
dtbo := $(foreach m,$(__dtbo),$(if $($(m)-base),$(m)))
|
|
|
|
__dtbo := $(addprefix $(obj)/,$(__dtbo))
|
|
dtbo-base := $(addprefix $(obj)/,$(dtbo-base))
|
|
dtbo := $(addprefix $(obj)/,$(dtbo))
|
|
|
|
ifneq ($(DTC_OVERLAY_TEST_EXT),)
|
|
DTC_OVERLAY_TEST = $(DTC_OVERLAY_TEST_EXT)
|
|
quiet_cmd_dtbo_verify = VERIFY $@
|
|
cmd_dtbo_verify = $(foreach m,\
|
|
$(addprefix $(obj)/,$($(@F)-base)),\
|
|
$(if $(m),\
|
|
$(DTC_OVERLAY_TEST) $(m) $@ \
|
|
$(dot-target).$(patsubst $(obj)/%.dtb,%,$(m)).tmp;))\
|
|
true
|
|
else
|
|
cmd_dtbo_verify = true
|
|
endif
|
|
|
|
$(obj)/%.dtbo: $(src)/%.dts FORCE
|
|
$(call if_changed_dep,dtc)
|
|
$(call if_changed,dtbo_verify)
|
|
|
|
$(call multi_depend, $(dtbo), , -base)
|
|
|
|
always += $(dtbo)
|