]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - scripts/Makefile.dtbinst
PCI / PM: Always check PME wakeup capability for runtime wakeup support
[mirror_ubuntu-artful-kernel.git] / scripts / Makefile.dtbinst
CommitLineData
9fb5e537
RR
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#
323a028d 9# Traverse through subdirectories listed in $(dts-dirs).
9fb5e537
RR
10# ==========================================================================
11
12src := $(obj)
13
14PHONY := __dtbs_install
15__dtbs_install:
16
2bfbe788 17export dtbinst_root ?= $(obj)
323a028d 18
9fb5e537
RR
19include include/config/auto.conf
20include scripts/Kbuild.include
5f655c7a 21include $(src)/Makefile
9fb5e537 22
9fb5e537 23dtbinst-files := $(dtb-y)
323a028d 24dtbinst-dirs := $(dts-dirs)
9fb5e537
RR
25
26# Helper targets for Installing DTBs into the boot directory
27quiet_cmd_dtb_install = INSTALL $<
323a028d
RR
28 cmd_dtb_install = mkdir -p $(2); cp $< $(2)
29
2bfbe788 30install-dir = $(patsubst $(dtbinst_root)%,$(INSTALL_DTBS_PATH)%,$(obj))
323a028d 31
323a028d
RR
32$(dtbinst-files): %.dtb: $(obj)/%.dtb
33 $(call cmd,dtb_install,$(install-dir))
9fb5e537 34
323a028d
RR
35$(dtbinst-dirs):
36 $(Q)$(MAKE) $(dtbinst)=$(obj)/$@
9fb5e537 37
323a028d
RR
38PHONY += $(dtbinst-files) $(dtbinst-dirs)
39__dtbs_install: $(dtbinst-files) $(dtbinst-dirs)
9fb5e537
RR
40
41.PHONY: $(PHONY)