]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
powerpc: enable building all dtbs
authorRob Herring <robh@kernel.org>
Thu, 2 Aug 2018 21:32:21 +0000 (15:32 -0600)
committerRob Herring <robh@kernel.org>
Tue, 2 Oct 2018 14:23:21 +0000 (09:23 -0500)
Enable the 'dtbs' target for powerpc. This allows building all the dts
files in arch/powerpc/boot/dts/ when COMPILE_TEST and OF_ALL_DTBS are
enabled.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Rob Herring <robh@kernel.org>
arch/powerpc/boot/dts/Makefile
arch/powerpc/boot/dts/fsl/Makefile [new file with mode: 0644]

index f66554cd5c4518cf919abf321ce9137e8b2be59d..fb335d05aae8ff87655d56b99c42217650afacd7 100644 (file)
@@ -1 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
+
+subdir-y += fsl
+
+dtstree                := $(srctree)/$(src)
+dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
diff --git a/arch/powerpc/boot/dts/fsl/Makefile b/arch/powerpc/boot/dts/fsl/Makefile
new file mode 100644 (file)
index 0000000..3bae982
--- /dev/null
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
+
+dtstree                := $(srctree)/$(src)
+dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))