Skip to content

Commit 33d2ce5

Browse files
Robert Richtertobetter
authored andcommitted
dts, arm64: Add dtbs_install make target
This adds the dtbs_install make target to arm64. The target has been introduced already to arch/arm with the following commit: f4d4ffc kbuild: dtbs_install: new make target Implementation for arm64 is the same as for arm. With 'dtbs_install' all config enabled dtb files are installed to either the INSTALL_DTBS_PATH directory or the default location: $INSTALL_PATH/dtbs/$KERNELRELEASE Signed-off-by: Robert Richter <[email protected]>
1 parent 2fd2b6c commit 33d2ce5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

arch/arm64/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ zinstall install: vmlinux
7171
%.dtb: scripts
7272
$(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
7373

74-
dtbs: scripts
75-
$(Q)$(MAKE) $(build)=$(boot)/dts dtbs
74+
PHONY += dtbs dtbs_install
75+
dtbs dtbs_install: prepare scripts
76+
$(Q)$(MAKE) $(build)=$(boot)/dts $@
7677

7778
PHONY += vdso_install
7879
vdso_install:
@@ -87,6 +88,7 @@ define archhelp
8788
echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)'
8889
echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
8990
echo '* dtbs - Build device tree blobs for enabled boards'
91+
echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'
9092
echo ' install - Install uncompressed kernel'
9193
echo ' zinstall - Install compressed kernel'
9294
echo ' Install using (your) ~/bin/installkernel or'

arch/arm64/boot/dts/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb foundation-v8.dtb
22
dtb-$(CONFIG_ARCH_MESON64_ODROIDC2) += meson64_odroidc2.dtb
33
dtb-$(CONFIG_ARCH_XGENE) += apm-mustang.dtb
44

5-
targets += dtbs
5+
targets += dtbs dtbs_install
66
targets += $(dtb-y)
77

88
dtbs: $(addprefix $(obj)/, $(dtb-y))
99

1010
clean-files := *.dtb
11+
12+
dtbs_install: $(addsuffix _dtbinst_, $(dtb-y))

0 commit comments

Comments
 (0)