0184-dts-kbuild-dtbs_install-installs-.dtbo-files-too.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 8ceb57a34f122beb1ac3fe70173c541d26fba76e Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Mon, 14 Mar 2016 16:56:54 +0000
  4. Subject: [PATCH] dts, kbuild: dtbs_install installs .dtbo files too
  5. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  6. ---
  7. scripts/Makefile.dtbinst | 10 +++++++---
  8. 1 file changed, 7 insertions(+), 3 deletions(-)
  9. --- a/scripts/Makefile.dtbinst
  10. +++ b/scripts/Makefile.dtbinst
  11. @@ -29,6 +29,7 @@ ifeq ("$(dtbinst-root)", "$(obj)")
  12. endif
  13. dtbinst-files := $(dtb-y)
  14. +dtboinst-files := $(dtbo-y)
  15. dtbinst-dirs := $(dts-dirs)
  16. # Helper targets for Installing DTBs into the boot directory
  17. @@ -37,15 +38,18 @@ quiet_cmd_dtb_install = INSTALL $<
  18. install-dir = $(patsubst $(dtbinst-root)%,$(INSTALL_DTBS_PATH)%,$(obj))
  19. -$(dtbinst-files) $(dtbinst-dirs): | __dtbs_install_prep
  20. +$(dtbinst-files) $(dtboinst-files) $(dtbinst-dirs): | __dtbs_install_prep
  21. $(dtbinst-files): %.dtb: $(obj)/%.dtb
  22. $(call cmd,dtb_install,$(install-dir))
  23. +$(dtboinst-files): %.dtbo: $(obj)/%.dtbo
  24. + $(call cmd,dtb_install,$(install-dir))
  25. +
  26. $(dtbinst-dirs):
  27. $(Q)$(MAKE) $(dtbinst)=$(obj)/$@
  28. -PHONY += $(dtbinst-files) $(dtbinst-dirs)
  29. -__dtbs_install: $(dtbinst-files) $(dtbinst-dirs)
  30. +PHONY += $(dtbinst-files) $(dtboinst-files) $(dtbinst-dirs)
  31. +__dtbs_install: $(dtbinst-files) $(dtboinst-files) $(dtbinst-dirs)
  32. .PHONY: $(PHONY)