Skip to content

Commit

Permalink
MIPS: dts: Avoid unneeded built-in.a in DTS dirs
Browse files Browse the repository at this point in the history
arch/mips/boot/dts/Makefile collects objects from sub-directories into
built-in.a only when CONFIG_BUILTIN_DTB is enabled. Reflect it also to
the sub-directory Makefiles. This suppresses unneeded built-in.a
creation in arch/mips/boot/dts/*/ directories.

While I am here, I replaced $(patsubst %.dtb, %.dtb.o, $(dtb-y)) with
$(addsuffix .o, $(dtb-y)) to simplify the code a little bit.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Cercueil <paul@crapouillou.net>
Cc: Mathieu Malaterre <malat@debian.org>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/19099/
Signed-off-by: James Hogan <jhogan@kernel.org>
  • Loading branch information
Masahiro Yamada authored and James Hogan committed Apr 23, 2018
1 parent 6d08b06 commit fca3aa1
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/brcm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ dtb-$(CONFIG_DT_NONE) += \
bcm97425svmb.dtb \
bcm97435svmb.dtb

obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/cavium-octeon/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_CAVIUM_OCTEON_SOC) += octeon_3xxx.dtb octeon_68xx.dtb

obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/ingenic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dtb-$(CONFIG_JZ4740_QI_LB60) += qi_lb60.dtb
dtb-$(CONFIG_JZ4770_GCW0) += gcw0.dtb
dtb-$(CONFIG_JZ4780_CI20) += ci20.dtb

obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/lantiq/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_DT_EASY50712) += easy50712.dtb

obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/mscc/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dtb-$(CONFIG_LEGACY_BOARD_OCELOT) += ocelot_pcb123.dtb

obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/mti/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
dtb-$(CONFIG_MIPS_MALTA) += malta.dtb
dtb-$(CONFIG_LEGACY_BOARD_SEAD3) += sead3.dtb

obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/netlogic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ dtb-$(CONFIG_DT_XLP_FVP) += xlp_fvp.dtb
dtb-$(CONFIG_DT_XLP_GVP) += xlp_gvp.dtb
dtb-$(CONFIG_DT_XLP_RVP) += xlp_rvp.dtb

obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/pic32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ dtb-$(CONFIG_DTB_PIC32_MZDA_SK) += pic32mzda_sk.dtb
dtb-$(CONFIG_DTB_PIC32_NONE) += \
pic32mzda_sk.dtb

obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/ralink/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ dtb-$(CONFIG_DTB_MT7620A_EVAL) += mt7620a_eval.dtb
dtb-$(CONFIG_DTB_OMEGA2P) += omega2p.dtb
dtb-$(CONFIG_DTB_VOCORE2) += vocore2.dtb

obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/xilfpga/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_FIT_IMAGE_FDT_XILFPGA) += nexys4ddr.dtb

obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))

0 comments on commit fca3aa1

Please sign in to comment.