Message ID | 20140829134942.GP4703@rric.localhost (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Olof, On 29.08.14 15:49:42, Robert Richter wrote: > On 29.08.14 14:10:23, Robert Richter wrote: > > On 28.08.14 16:01:08, Olof Johansson wrote: > > > Thinking about it a bit more, the even more obvious solution that I > > > for some reason didn't think of at the time, is to have the > > > dtbs_install target create the appropriate subdirectories on the > > > install side, so that the structure is preserved. > > > > > > That comes a bit closer to how modules are handled as well. > > > > Yes, dtbs_install target would be useful. > > > > Will come with a solution for this too. > > below is a patch that adds the dtbs_install target to arm64. Taken > from arm where this was already implemented. please note that I sent a separate patch set with a complete implementation of this with the title: [PATCH 0/6] dts, kbuild: Implement support for dtb vendor subdirs this patch is included there too. -Robert
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 8185a913c5ed..c68efa07c5f3 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -66,8 +66,9 @@ zinstall install: vmlinux %.dtb: scripts $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ -dtbs: scripts - $(Q)$(MAKE) $(build)=$(boot)/dts dtbs +PHONY += dtbs dtbs_install +dtbs dtbs_install: prepare scripts + $(Q)$(MAKE) $(build)=$(boot)/dts $@ PHONY += vdso_install vdso_install: @@ -81,6 +82,7 @@ define archhelp echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)' echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' echo '* dtbs - Build device tree blobs for enabled boards' + echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)' echo ' install - Install uncompressed kernel' echo ' zinstall - Install compressed kernel' echo ' Install using (your) ~/bin/installkernel or' diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile index f8001a62029c..3a75cdc2d087 100644 --- a/arch/arm64/boot/dts/Makefile +++ b/arch/arm64/boot/dts/Makefile @@ -2,9 +2,11 @@ dtb-$(CONFIG_ARCH_THUNDER) += thunder-88xx.dtb dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb foundation-v8.dtb dtb-$(CONFIG_ARCH_XGENE) += apm-mustang.dtb -targets += dtbs +targets += dtbs dtbs_install targets += $(dtb-y) dtbs: $(addprefix $(obj)/, $(dtb-y)) clean-files := *.dtb + +dtbs_install: $(addsuffix _dtbinst_, $(dtb-y))