summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-08-01 11:49:58 -0600
committerRob Herring <robh@kernel.org>2018-10-02 09:22:49 -0500
commita91c614510478598051e8c49adb9863ee47959ec (patch)
treecf4086b240ebc8d06a8c3e3bc2f90287291528da /arch/nios2
parent1b4f9e2b0f48bb178a53ac515654caf3bba1b273 (diff)
downloadlinux-0-day-a91c614510478598051e8c49adb9863ee47959ec.tar.gz
linux-0-day-a91c614510478598051e8c49adb9863ee47959ec.tar.xz
nios2: fix building all dtbs
nios2 has a 'dtbs' target, but nothing is added to 'dtb-*' targets and no dtbs were getting built. This enables building all the dts files in arch/nios2/boot/dts/ when COMPILE_TEST and OF_ALL_DTBS are enabled. Cc: Ley Foon Tan <lftan@altera.com> Cc: nios2-dev@lists.rocketboards.org Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/boot/dts/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/nios2/boot/dts/Makefile b/arch/nios2/boot/dts/Makefile
index f6358e395b250..a91a0b09be633 100644
--- a/arch/nios2/boot/dts/Makefile
+++ b/arch/nios2/boot/dts/Makefile
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
obj-y := $(patsubst "%.dts",%.dtb.o,$(CONFIG_NIOS2_DTB_SOURCE))
+
+dtstree := $(srctree)/$(src)
+dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))