diff options
author | Rob Herring <robh@kernel.org> | 2018-08-01 16:14:12 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2018-10-02 10:22:49 -0400 |
commit | 1b4f9e2b0f48bb178a53ac515654caf3bba1b273 (patch) | |
tree | b1a50dbfbf6c6a40981833a4a6e01ddf5c134673 /arch/nios2/Makefile | |
parent | 118864869805123bf82d666062542440a0fda5dd (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/Makefile')
-rw-r--r-- | arch/nios2/Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile index 50eece1c6adb..db2e78fe65c7 100644 --- a/arch/nios2/Makefile +++ b/arch/nios2/Makefile | |||
@@ -49,16 +49,14 @@ BOOT_TARGETS = vmImage zImage | |||
49 | PHONY += $(BOOT_TARGETS) install | 49 | PHONY += $(BOOT_TARGETS) install |
50 | KBUILD_IMAGE := $(nios2-boot)/vmImage | 50 | KBUILD_IMAGE := $(nios2-boot)/vmImage |
51 | 51 | ||
52 | ifneq ($(CONFIG_NIOS2_DTB_SOURCE),"") | 52 | core-y += $(nios2-boot)/dts/ |
53 | core-y += $(nios2-boot)/ | ||
54 | endif | ||
55 | 53 | ||
56 | all: vmImage | 54 | all: vmImage |
57 | 55 | ||
58 | archclean: | 56 | archclean: |
59 | $(Q)$(MAKE) $(clean)=$(nios2-boot) | 57 | $(Q)$(MAKE) $(clean)=$(nios2-boot) |
60 | 58 | ||
61 | %.dtb: | scripts | 59 | %.dtb %.dtb.S %.dtb.o: | scripts |
62 | $(Q)$(MAKE) $(build)=$(nios2-boot)/dts $(nios2-boot)/dts/$@ | 60 | $(Q)$(MAKE) $(build)=$(nios2-boot)/dts $(nios2-boot)/dts/$@ |
63 | 61 | ||
64 | dtbs: | 62 | dtbs: |