aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndrew Bresticker <abrestic@chromium.org>2014-08-21 16:04:20 -0400
committerRalf Baechle <ralf@linux-mips.org>2014-09-22 07:35:49 -0400
commit7fafb06831431ed7bc882c3cd7c981e3f41cfdb0 (patch)
tree2db1741920497fe28ef19017f27cc15760f92c8a /arch
parentbfe0307942366b729520718b1ddcd96fb9bd5391 (diff)
MIPS: Create common infrastructure for building built-in device-trees
In preparation for moving the device-trees to a common location, introduce the config option BUILTIN_DTB, which can be selected by platforms that use a device-tree built into the kernel image, and create a Makefile to build the device-trees in arch/mips/boot/dts/. 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/7564/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/Kconfig3
-rw-r--r--arch/mips/Makefile6
-rw-r--r--arch/mips/boot/dts/Makefile3
3 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 574c43000699..8a2663d806c9 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2482,6 +2482,9 @@ config USE_OF
2482 select OF_EARLY_FLATTREE 2482 select OF_EARLY_FLATTREE
2483 select IRQ_DOMAIN 2483 select IRQ_DOMAIN
2484 2484
2485config BUILTIN_DTB
2486 bool
2487
2485endmenu 2488endmenu
2486 2489
2487config LOCKDEP_SUPPORT 2490config LOCKDEP_SUPPORT
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index bbac51e11179..bd642623f360 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -333,6 +333,12 @@ endif
333 333
334CLEAN_FILES += vmlinux.32 vmlinux.64 334CLEAN_FILES += vmlinux.32 vmlinux.64
335 335
336# device-trees
337core-$(CONFIG_BUILTIN_DTB) += arch/mips/boot/dts/
338
339%.dtb %.dtb.S %.dtb.o: | scripts
340 $(Q)$(MAKE) $(build)=arch/mips/boot/dts arch/mips/boot/dts/$@
341
336archprepare: 342archprepare:
337ifdef CONFIG_MIPS32_N32 343ifdef CONFIG_MIPS32_N32
338 @echo ' Checking missing-syscalls for N32' 344 @echo ' Checking missing-syscalls for N32'
diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile
new file mode 100644
index 000000000000..6bb41df59264
--- /dev/null
+++ b/arch/mips/boot/dts/Makefile
@@ -0,0 +1,3 @@
1obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
2
3clean-files += *.dtb.S