Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Add support for building device-tree binaries

Add a 'dtbs' Makefile target that just builds the device-tree binaries
enabled by the configuration.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
Cc: Kumar Gala <galak@codeaurora.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: David Daney <david.daney@cavium.com>
Cc: John Crispin <blogic@openwrt.org>
Cc: Jayachandran C <jchandra@broadcom.com>
Cc: Qais Yousef <qais.yousef@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7557/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Andrew Bresticker and committed by
Ralf Baechle
c8d333df 7fafb068

+12 -1
+5
arch/mips/Makefile
··· 339 339 %.dtb %.dtb.S %.dtb.o: | scripts 340 340 $(Q)$(MAKE) $(build)=arch/mips/boot/dts arch/mips/boot/dts/$@ 341 341 342 + PHONY += dtbs 343 + dtbs: scripts 344 + $(Q)$(MAKE) $(build)=arch/mips/boot/dts dtbs 345 + 342 346 archprepare: 343 347 ifdef CONFIG_MIPS32_N32 344 348 @echo ' Checking missing-syscalls for N32' ··· 377 373 echo ' vmlinuz.srec - SREC zboot image' 378 374 echo ' uImage - U-Boot image' 379 375 echo ' uImage.gz - U-Boot image (gzip)' 376 + echo ' dtbs - Device-tree blobs for enabled boards' 380 377 echo 381 378 echo ' These will be default as appropriate for a configured platform.' 382 379 endef
+1
arch/mips/boot/.gitignore
··· 5 5 zImage.tmp 6 6 calc_vmlinuz_load_addr 7 7 uImage 8 + *.dtb
+6 -1
arch/mips/boot/dts/Makefile
··· 1 1 obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) 2 2 3 - clean-files += *.dtb.S 3 + targets += dtbs 4 + targets += $(dtb-y) 5 + 6 + dtbs: $(addprefix $(obj)/, $(dtb-y)) 7 + 8 + clean-files += *.dtb *.dtb.S