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 |
# ========================================================================== # 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 |
9fb5e5372 dts, kbuild: Fact... |
9 10 11 12 13 14 |
# ========================================================================== src := $(obj) PHONY := __dtbs_install __dtbs_install: |
2bfbe7881 kbuild: Do not us... |
15 |
export dtbinst_root ?= $(obj) |
323a028d3 dts, kbuild: Impl... |
16 |
|
9fb5e5372 dts, kbuild: Fact... |
17 18 |
include include/config/auto.conf include scripts/Kbuild.include |
5f655c7a4 kbuild: include $... |
19 |
include $(src)/Makefile |
9fb5e5372 dts, kbuild: Fact... |
20 |
|
7e7962dd1 kbuild: handle dt... |
21 22 |
dtbinst-files := $(sort $(dtb-y) $(if $(CONFIG_OF_ALL_DTBS), $(dtb-))) dtbinst-dirs := $(subdir-y) $(subdir-m) |
9fb5e5372 dts, kbuild: Fact... |
23 24 25 |
# Helper targets for Installing DTBs into the boot directory quiet_cmd_dtb_install = INSTALL $< |
323a028d3 dts, kbuild: Impl... |
26 |
cmd_dtb_install = mkdir -p $(2); cp $< $(2) |
2bfbe7881 kbuild: Do not us... |
27 |
install-dir = $(patsubst $(dtbinst_root)%,$(INSTALL_DTBS_PATH)%,$(obj)) |
323a028d3 dts, kbuild: Impl... |
28 |
|
323a028d3 dts, kbuild: Impl... |
29 30 |
$(dtbinst-files): %.dtb: $(obj)/%.dtb $(call cmd,dtb_install,$(install-dir)) |
9fb5e5372 dts, kbuild: Fact... |
31 |
|
323a028d3 dts, kbuild: Impl... |
32 33 |
$(dtbinst-dirs): $(Q)$(MAKE) $(dtbinst)=$(obj)/$@ |
9fb5e5372 dts, kbuild: Fact... |
34 |
|
323a028d3 dts, kbuild: Impl... |
35 36 |
PHONY += $(dtbinst-files) $(dtbinst-dirs) __dtbs_install: $(dtbinst-files) $(dtbinst-dirs) |
9fb5e5372 dts, kbuild: Fact... |
37 38 |
.PHONY: $(PHONY) |