diff options
author | Rob Herring <robh@kernel.org> | 2018-08-01 14:14:12 -0600 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2018-10-02 09:22:49 -0500 |
commit | 1b4f9e2b0f48bb178a53ac515654caf3bba1b273 (patch) | |
tree | b1a50dbfbf6c6a40981833a4a6e01ddf5c134673 /arch/nios2/boot/Makefile | |
parent | 118864869805123bf82d666062542440a0fda5dd (diff) | |
download | linux-1b4f9e2b0f48bb178a53ac515654caf3bba1b273.tar.gz linux-1b4f9e2b0f48bb178a53ac515654caf3bba1b273.tar.bz2 linux-1b4f9e2b0f48bb178a53ac515654caf3bba1b273.zip |
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/Makefile')
-rw-r--r-- | arch/nios2/boot/Makefile | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/nios2/boot/Makefile b/arch/nios2/boot/Makefile index 007586094dde..0b48f1bf086d 100644 --- a/arch/nios2/boot/Makefile +++ b/arch/nios2/boot/Makefile @@ -31,20 +31,6 @@ $(obj)/zImage: $(obj)/compressed/vmlinux FORCE $(obj)/compressed/vmlinux: $(obj)/vmlinux.gz FORCE $(Q)$(MAKE) $(build)=$(obj)/compressed $@ -# Rule to build device tree blobs -DTB_SRC := $(patsubst "%",%,$(CONFIG_NIOS2_DTB_SOURCE)) - -# Make sure the generated dtb gets removed during clean -extra-$(CONFIG_NIOS2_DTB_SOURCE_BOOL) += system.dtb - -$(obj)/system.dtb: $(DTB_SRC) FORCE - $(call cmd,dtc) - -# Ensure system.dtb exists -$(obj)/linked_dtb.o: $(obj)/system.dtb - -obj-$(CONFIG_NIOS2_DTB_SOURCE_BOOL) += linked_dtb.o - targets += $(dtb-y) $(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y)) |