Blame view
scripts/Makefile.dtbinst
1.09 KB
b24413180 License cleanup: ... |
1 |
# SPDX-License-Identifier: GPL-2.0 |
9fb5e5372 dts, kbuild: Fact... |
2 3 4 5 6 7 8 9 |
# ========================================================================== # Installing dtb files # # Installs all dtb files listed in $(dtb-y) either in the # INSTALL_DTBS_PATH directory or the default location: # # $INSTALL_PATH/dtbs/$KERNELRELEASE # |
323a028d3 dts, kbuild: Impl... |
10 |
# Traverse through subdirectories listed in $(dts-dirs). |
9fb5e5372 dts, kbuild: Fact... |
11 12 13 14 15 16 |
# ========================================================================== src := $(obj) PHONY := __dtbs_install __dtbs_install: |
2bfbe7881 kbuild: Do not us... |
17 |
export dtbinst_root ?= $(obj) |
323a028d3 dts, kbuild: Impl... |
18 |
|
9fb5e5372 dts, kbuild: Fact... |
19 20 |
include include/config/auto.conf include scripts/Kbuild.include |
5f655c7a4 kbuild: include $... |
21 |
include $(src)/Makefile |
9fb5e5372 dts, kbuild: Fact... |
22 |
|
9fb5e5372 dts, kbuild: Fact... |
23 |
dtbinst-files := $(dtb-y) |
323a028d3 dts, kbuild: Impl... |
24 |
dtbinst-dirs := $(dts-dirs) |
9fb5e5372 dts, kbuild: Fact... |
25 26 27 |
# Helper targets for Installing DTBs into the boot directory quiet_cmd_dtb_install = INSTALL $< |
323a028d3 dts, kbuild: Impl... |
28 |
cmd_dtb_install = mkdir -p $(2); cp $< $(2) |
2bfbe7881 kbuild: Do not us... |
29 |
install-dir = $(patsubst $(dtbinst_root)%,$(INSTALL_DTBS_PATH)%,$(obj)) |
323a028d3 dts, kbuild: Impl... |
30 |
|
323a028d3 dts, kbuild: Impl... |
31 32 |
$(dtbinst-files): %.dtb: $(obj)/%.dtb $(call cmd,dtb_install,$(install-dir)) |
9fb5e5372 dts, kbuild: Fact... |
33 |
|
323a028d3 dts, kbuild: Impl... |
34 35 |
$(dtbinst-dirs): $(Q)$(MAKE) $(dtbinst)=$(obj)/$@ |
9fb5e5372 dts, kbuild: Fact... |
36 |
|
323a028d3 dts, kbuild: Impl... |
37 38 |
PHONY += $(dtbinst-files) $(dtbinst-dirs) __dtbs_install: $(dtbinst-files) $(dtbinst-dirs) |
9fb5e5372 dts, kbuild: Fact... |
39 40 |
.PHONY: $(PHONY) |