Makefile.dtbo 754 B

1234567891011121314151617181920212223242526272829
  1. __dtbo := $(sort $(dtbo-y))
  2. dtbo-base := $(sort $(foreach m,$(__dtbo),$($(m)-base)))
  3. dtbo := $(foreach m,$(__dtbo),$(if $($(m)-base),$(m)))
  4. __dtbo := $(addprefix $(obj)/,$(__dtbo))
  5. dtbo-base := $(addprefix $(obj)/,$(dtbo-base))
  6. dtbo := $(addprefix $(obj)/,$(dtbo))
  7. ifneq ($(DTC_OVERLAY_TEST_EXT),)
  8. DTC_OVERLAY_TEST = $(DTC_OVERLAY_TEST_EXT)
  9. quiet_cmd_dtbo_verify = VERIFY $@
  10. cmd_dtbo_verify = $(foreach m,\
  11. $(addprefix $(obj)/,$($(@F)-base)),\
  12. $(if $(m),\
  13. $(DTC_OVERLAY_TEST) $(m) $@ \
  14. $(dot-target).$(patsubst $(obj)/%.dtb,%,$(m)).tmp;))\
  15. true
  16. else
  17. cmd_dtbo_verify = true
  18. endif
  19. $(obj)/%.dtbo: $(src)/%.dts FORCE
  20. $(call if_changed_dep,dtc)
  21. $(call if_changed,dtbo_verify)
  22. $(call multi_depend, $(dtbo), , -base)
  23. always += $(dtbo)