Skip to content

Commit 1188648

Browse files
committed
nios2: build .dtb files in dts directory
Align nios2 with other architectures which build the dtb files in the same directory as the dts files. This is also in line with most other build targets which are located in the same directory as the source. This move will help enable the 'dtbs' target which builds all the dtbs regardless of kernel config. This transition could break some scripts if they expect dtb files in the old location. Cc: Ley Foon Tan <lftan@altera.com> Cc: nios2-dev@lists.rocketboards.org Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 1acf1cf commit 1188648

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

arch/nios2/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ archclean:
5959
$(Q)$(MAKE) $(clean)=$(nios2-boot)
6060

6161
%.dtb: | scripts
62-
$(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@
62+
$(Q)$(MAKE) $(build)=$(nios2-boot)/dts $(nios2-boot)/dts/$@
6363

6464
dtbs:
65-
$(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@
65+
$(Q)$(MAKE) $(build)=$(nios2-boot)/dts
6666

6767
$(BOOT_TARGETS): vmlinux
6868
$(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@

arch/nios2/boot/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ obj-$(CONFIG_NIOS2_DTB_SOURCE_BOOL) += linked_dtb.o
4747

4848
targets += $(dtb-y)
4949

50-
# Rule to build device tree blobs with make command
51-
$(obj)/%.dtb: $(src)/dts/%.dts FORCE
52-
$(call if_changed_dep,dtc)
53-
5450
$(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y))
5551

5652
install:

arch/nios2/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# SPDX-License-Identifier: GPL-2.0

0 commit comments

Comments
 (0)