Version:  2.0.40 2.2.26 2.4.37 3.13 3.14 3.15 3.16 3.17 3.18 3.19 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10

Linux/scripts/Makefile.dtbinst

  1 # ==========================================================================
  2 # Installing dtb files
  3 #
  4 # Installs all dtb files listed in $(dtb-y) either in the
  5 # INSTALL_DTBS_PATH directory or the default location:
  6 #
  7 #   $INSTALL_PATH/dtbs/$KERNELRELEASE
  8 #
  9 # Traverse through subdirectories listed in $(dts-dirs).
 10 # ==========================================================================
 11 
 12 src := $(obj)
 13 
 14 PHONY := __dtbs_install
 15 __dtbs_install:
 16 
 17 export dtbinst-root ?= $(obj)
 18 
 19 include include/config/auto.conf
 20 include scripts/Kbuild.include
 21 include $(src)/Makefile
 22 
 23 PHONY += __dtbs_install_prep
 24 __dtbs_install_prep:
 25 ifeq ("$(dtbinst-root)", "$(obj)")
 26         $(Q)mkdir -p $(INSTALL_DTBS_PATH)
 27 endif
 28 
 29 dtbinst-files   := $(dtb-y)
 30 dtbinst-dirs    := $(dts-dirs)
 31 
 32 # Helper targets for Installing DTBs into the boot directory
 33 quiet_cmd_dtb_install = INSTALL $<
 34       cmd_dtb_install = mkdir -p $(2); cp $< $(2)
 35 
 36 install-dir = $(patsubst $(dtbinst-root)%,$(INSTALL_DTBS_PATH)%,$(obj))
 37 
 38 $(dtbinst-files) $(dtbinst-dirs): | __dtbs_install_prep
 39 
 40 $(dtbinst-files): %.dtb: $(obj)/%.dtb
 41         $(call cmd,dtb_install,$(install-dir))
 42 
 43 $(dtbinst-dirs):
 44         $(Q)$(MAKE) $(dtbinst)=$(obj)/$@
 45 
 46 PHONY += $(dtbinst-files) $(dtbinst-dirs)
 47 __dtbs_install: $(dtbinst-files) $(dtbinst-dirs)
 48 
 49 .PHONY: $(PHONY)

This page was automatically generated by LXR 0.3.1 (source).  •  Linux is a registered trademark of Linus Torvalds  •  Contact us