summaryrefslogtreecommitdiff
path: root/arch/nios2/boot/dts
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-08-01 14:14:12 -0600
committerRob Herring <robh@kernel.org>2018-10-02 09:22:49 -0500
commit1b4f9e2b0f48bb178a53ac515654caf3bba1b273 (patch)
treeb1a50dbfbf6c6a40981833a4a6e01ddf5c134673 /arch/nios2/boot/dts
parent118864869805123bf82d666062542440a0fda5dd (diff)
nios2: use common rules to build built-in dtb
Using the common build support for built-in dtb files just requires adding a .dtb.o target to obj-y. This has the side effect that CONFIG_NIOS2_DTB_SOURCE should now be just the dts filename in arch/nios2/boot/dts/ directory. Before any path was supported, but if you want to build in your dtb to the kernel, it should be in the kernel tree. 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/boot/dts')
-rw-r--r--arch/nios2/boot/dts/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/nios2/boot/dts/Makefile b/arch/nios2/boot/dts/Makefile
index f66554cd5c45..f6358e395b25 100644
--- a/arch/nios2/boot/dts/Makefile
+++ b/arch/nios2/boot/dts/Makefile
@@ -1 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
+
+obj-y := $(patsubst "%.dts",%.dtb.o,$(CONFIG_NIOS2_DTB_SOURCE))