mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
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>
This commit is contained in:
parent
1acf1cf863
commit
1188648698
3 changed files with 3 additions and 6 deletions
|
@ -59,10 +59,10 @@ archclean:
|
||||||
$(Q)$(MAKE) $(clean)=$(nios2-boot)
|
$(Q)$(MAKE) $(clean)=$(nios2-boot)
|
||||||
|
|
||||||
%.dtb: | scripts
|
%.dtb: | scripts
|
||||||
$(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@
|
$(Q)$(MAKE) $(build)=$(nios2-boot)/dts $(nios2-boot)/dts/$@
|
||||||
|
|
||||||
dtbs:
|
dtbs:
|
||||||
$(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@
|
$(Q)$(MAKE) $(build)=$(nios2-boot)/dts
|
||||||
|
|
||||||
$(BOOT_TARGETS): vmlinux
|
$(BOOT_TARGETS): vmlinux
|
||||||
$(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@
|
$(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@
|
||||||
|
|
|
@ -47,10 +47,6 @@ obj-$(CONFIG_NIOS2_DTB_SOURCE_BOOL) += linked_dtb.o
|
||||||
|
|
||||||
targets += $(dtb-y)
|
targets += $(dtb-y)
|
||||||
|
|
||||||
# Rule to build device tree blobs with make command
|
|
||||||
$(obj)/%.dtb: $(src)/dts/%.dts FORCE
|
|
||||||
$(call if_changed_dep,dtc)
|
|
||||||
|
|
||||||
$(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y))
|
$(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y))
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
1
arch/nios2/boot/dts/Makefile
Normal file
1
arch/nios2/boot/dts/Makefile
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
Loading…
Reference in a new issue