Skip to content

Commit 318df80

Browse files
committed
MIPS: Refactor legacy defconfigs
Define legacy defconfigs which have been converted to the generic platform more programatically, so that they can be listed in the Makefile help text and as a separate Makefile target without duplication. Signed-off-by: James Hogan <jhogan@kernel.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Paul Burton <paul.burton@mips.com> Cc: Matt Redfearn <matt.redfearn@mips.com> Cc: linux-mips@linux-mips.org Cc: linux-kbuild@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/18596/
1 parent 35868f0 commit 318df80

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

arch/mips/Makefile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -546,14 +546,15 @@ generic_defconfig:
546546
# now that the boards have been converted to use the generic kernel they are
547547
# wrappers around the generic rules above.
548548
#
549-
.PHONY: sead3_defconfig
550-
sead3_defconfig:
551-
$(Q)$(MAKE) -f $(srctree)/Makefile 32r2el_defconfig BOARDS=sead-3
549+
legacy_defconfigs += sead3_defconfig
550+
sead3_defconfig-y := 32r2el_defconfig BOARDS=sead-3
552551

553-
.PHONY: sead3micro_defconfig
554-
sead3micro_defconfig:
555-
$(Q)$(MAKE) -f $(srctree)/Makefile micro32r2el_defconfig BOARDS=sead-3
552+
legacy_defconfigs += sead3micro_defconfig
553+
sead3micro_defconfig-y := micro32r2el_defconfig BOARDS=sead-3
556554

557-
.PHONY: xilfpga_defconfig
558-
xilfpga_defconfig:
559-
$(Q)$(MAKE) -f $(srctree)/Makefile 32r2el_defconfig BOARDS=xilfpga
555+
legacy_defconfigs += xilfpga_defconfig
556+
xilfpga_defconfig-y := 32r2el_defconfig BOARDS=xilfpga
557+
558+
.PHONY: $(legacy_defconfigs)
559+
$(legacy_defconfigs):
560+
$(Q)$(MAKE) -f $(srctree)/Makefile $($@-y)

0 commit comments

Comments
 (0)