diff options
author | Andrew Bresticker <abrestic@chromium.org> | 2014-08-21 16:04:21 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-09-22 07:35:49 -0400 |
commit | c8d333dfe4bab898fd87f4c3ae555f2c1388eb8f (patch) | |
tree | 68417d83ee95356c3867b6a13d7ebe7e9ab86d7f | |
parent | 7fafb06831431ed7bc882c3cd7c981e3f41cfdb0 (diff) |
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>
-rw-r--r-- | arch/mips/Makefile | 5 | ||||
-rw-r--r-- | arch/mips/boot/.gitignore | 1 | ||||
-rw-r--r-- | arch/mips/boot/dts/Makefile | 7 |
3 files changed, 12 insertions, 1 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index bd642623f360..23cb94806fbc 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -339,6 +339,10 @@ core-$(CONFIG_BUILTIN_DTB) += arch/mips/boot/dts/ | |||
339 | %.dtb %.dtb.S %.dtb.o: | scripts | 339 | %.dtb %.dtb.S %.dtb.o: | scripts |
340 | $(Q)$(MAKE) $(build)=arch/mips/boot/dts arch/mips/boot/dts/$@ | 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 | archprepare: | 346 | archprepare: |
343 | ifdef CONFIG_MIPS32_N32 | 347 | ifdef CONFIG_MIPS32_N32 |
344 | @echo ' Checking missing-syscalls for N32' | 348 | @echo ' Checking missing-syscalls for N32' |
@@ -373,6 +377,7 @@ define archhelp | |||
373 | echo ' vmlinuz.srec - SREC zboot image' | 377 | echo ' vmlinuz.srec - SREC zboot image' |
374 | echo ' uImage - U-Boot image' | 378 | echo ' uImage - U-Boot image' |
375 | echo ' uImage.gz - U-Boot image (gzip)' | 379 | echo ' uImage.gz - U-Boot image (gzip)' |
380 | echo ' dtbs - Device-tree blobs for enabled boards' | ||
376 | echo | 381 | echo |
377 | echo ' These will be default as appropriate for a configured platform.' | 382 | echo ' These will be default as appropriate for a configured platform.' |
378 | endef | 383 | endef |
diff --git a/arch/mips/boot/.gitignore b/arch/mips/boot/.gitignore index a73d6e2c4f64..d3962cd5ce0c 100644 --- a/arch/mips/boot/.gitignore +++ b/arch/mips/boot/.gitignore | |||
@@ -5,3 +5,4 @@ zImage | |||
5 | zImage.tmp | 5 | zImage.tmp |
6 | calc_vmlinuz_load_addr | 6 | calc_vmlinuz_load_addr |
7 | uImage | 7 | uImage |
8 | *.dtb | ||
diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile index 6bb41df59264..9b3da1f4bc6d 100644 --- a/arch/mips/boot/dts/Makefile +++ b/arch/mips/boot/dts/Makefile | |||
@@ -1,3 +1,8 @@ | |||
1 | obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) | 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 | ||