12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- src := $(obj)
- PHONY := __dtbs_install
- __dtbs_install:
- export dtbinst-root ?= $(obj)
- include include/config/auto.conf
- include scripts/Kbuild.include
- include $(src)/Makefile
- PHONY += __dtbs_install_prep
- __dtbs_install_prep:
- ifeq ("$(dtbinst-root)", "$(obj)")
- $(Q)mkdir -p $(INSTALL_DTBS_PATH)
- endif
- dtbinst-files := $(dtb-y)
- dtbinst-dirs := $(dts-dirs)
- quiet_cmd_dtb_install = INSTALL $<
- cmd_dtb_install = mkdir -p $(2); cp $< $(2)
- install-dir = $(patsubst $(dtbinst-root)%,$(INSTALL_DTBS_PATH)%,$(obj))
- $(dtbinst-files) $(dtbinst-dirs): | __dtbs_install_prep
- $(dtbinst-files): %.dtb: $(obj)/%.dtb
- $(call cmd,dtb_install,$(install-dir))
- $(dtbinst-dirs):
- $(Q)$(MAKE) $(dtbinst)=$(obj)/$@
- PHONY += $(dtbinst-files) $(dtbinst-dirs)
- __dtbs_install: $(dtbinst-files) $(dtbinst-dirs)
- .PHONY: $(PHONY)
|