Blame view
scripts/Makefile.dtbinst
933 Bytes
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 15 16 17 |
# ========================================================================== src := $(obj) PHONY := __dtbs_install __dtbs_install: include include/config/auto.conf include scripts/Kbuild.include |
5f655c7a4 kbuild: include $... |
18 |
include $(src)/Makefile |
9fb5e5372 dts, kbuild: Fact... |
19 |
|
aefd80307 kbuild: refactor ... |
20 21 |
dtbs := $(addprefix $(dst)/, $(dtb-y) $(if $(CONFIG_OF_ALL_DTBS),$(dtb-))) subdirs := $(addprefix $(obj)/, $(subdir-y) $(subdir-m)) |
9fb5e5372 dts, kbuild: Fact... |
22 |
|
aefd80307 kbuild: refactor ... |
23 24 |
__dtbs_install: $(dtbs) $(subdirs) @: |
323a028d3 dts, kbuild: Impl... |
25 |
|
aefd80307 kbuild: refactor ... |
26 27 |
quiet_cmd_dtb_install = INSTALL $@ cmd_dtb_install = install -D $< $@ |
9fb5e5372 dts, kbuild: Fact... |
28 |
|
aefd80307 kbuild: refactor ... |
29 30 |
$(dst)/%.dtb: $(obj)/%.dtb $(call cmd,dtb_install) |
9fb5e5372 dts, kbuild: Fact... |
31 |
|
aefd80307 kbuild: refactor ... |
32 33 34 |
PHONY += $(subdirs) $(subdirs): $(Q)$(MAKE) $(dtbinst)=$@ dst=$(patsubst $(obj)/%,$(dst)/%,$@) |
9fb5e5372 dts, kbuild: Fact... |
35 36 |
.PHONY: $(PHONY) |