]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - scripts/Makefile.dtbinst
UBUNTU: [Config] CONFIG_BLK_DEV_LOOP_MIN_COUNT=256
[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)
ab55feac 24dtboinst-files := $(dtbo-y)
323a028d 25dtbinst-dirs := $(dts-dirs)
9fb5e537
RR
26
27# Helper targets for Installing DTBs into the boot directory
28quiet_cmd_dtb_install = INSTALL $<
323a028d
RR
29 cmd_dtb_install = mkdir -p $(2); cp $< $(2)
30
2bfbe788 31install-dir = $(patsubst $(dtbinst_root)%,$(INSTALL_DTBS_PATH)%,$(obj))
323a028d 32
323a028d
RR
33$(dtbinst-files): %.dtb: $(obj)/%.dtb
34 $(call cmd,dtb_install,$(install-dir))
9fb5e537 35
ab55feac 36$(dtboinst-files): %.dtbo: $(obj)/%.dtbo
37 $(call cmd,dtb_install,$(install-dir))
38
323a028d
RR
39$(dtbinst-dirs):
40 $(Q)$(MAKE) $(dtbinst)=$(obj)/$@
9fb5e537 41
ab55feac 42PHONY += $(dtbinst-files) $(dtboinst-files) $(dtbinst-dirs)
43__dtbs_install: $(dtbinst-files) $(dtboinst-files) $(dtbinst-dirs)
9fb5e537
RR
44
45.PHONY: $(PHONY)