Skip to content

Commit cccd0b9

Browse files
committed
MIPS: Expand help text to list generic defconfigs
Expand the MIPS Makefile help text to list generic board names, generic defconfigs, and legacy defconfigs which have been converted to generic and are still usable. Here's a snippet of the new "make ARCH=mips help" output: ... If you are targeting a system supported by generic kernels you may configure the kernel for a given architecture target like so: {micro32,32,64}{r1,r2,r6}{el,}_defconfig <BOARDS="list of boards"> Where BOARDS is some subset of the following: boston ni169445 ranchu sead-3 xilfpga Specifically the following generic default configurations are supported: 32r1_defconfig - Build generic kernel for MIPS32 r1 32r1el_defconfig - Build generic kernel for MIPS32 r1 little endian 32r2_defconfig - Build generic kernel for MIPS32 r2 32r2el_defconfig - Build generic kernel for MIPS32 r2 little endian 32r6_defconfig - Build generic kernel for MIPS32 r6 32r6el_defconfig - Build generic kernel for MIPS32 r6 little endian 64r1_defconfig - Build generic kernel for MIPS64 r1 64r1el_defconfig - Build generic kernel for MIPS64 r1 little endian 64r2_defconfig - Build generic kernel for MIPS64 r2 64r2el_defconfig - Build generic kernel for MIPS64 r2 little endian 64r6_defconfig - Build generic kernel for MIPS64 r6 64r6el_defconfig - Build generic kernel for MIPS64 r6 little endian micro32r2_defconfig - Build generic kernel for microMIPS32 r2 micro32r2el_defconfig - Build generic kernel for microMIPS32 r2 little endian The following legacy default configurations have been converted to generic and can still be used: sead3_defconfig - Build 32r2el_defconfig BOARDS=sead-3 sead3micro_defconfig - Build micro32r2el_defconfig BOARDS=sead-3 xilfpga_defconfig - Build 32r2el_defconfig BOARDS=xilfpga ... 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/18598/
1 parent 318df80 commit cccd0b9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

arch/mips/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,21 @@ define archhelp
476476
echo
477477
echo ' {micro32,32,64}{r1,r2,r6}{el,}_defconfig <BOARDS="list of boards">'
478478
echo
479+
echo ' Where BOARDS is some subset of the following:'
480+
for board in $(sort $(BOARDS)); do echo " $${board}"; done
481+
echo
482+
echo ' Specifically the following generic default configurations are'
483+
echo ' supported:'
484+
echo
485+
$(foreach cfg,$(generic_defconfigs),
486+
printf " %-24s - Build generic kernel for $(call describe_generic_defconfig,$(cfg))\n" $(cfg);)
487+
echo
488+
echo ' The following legacy default configurations have been converted to'
489+
echo ' generic and can still be used:'
490+
echo
491+
$(foreach cfg,$(sort $(legacy_defconfigs)),
492+
printf " %-24s - Build $($(cfg)-y)\n" $(cfg);)
493+
echo
479494
echo ' Otherwise, the following default configurations are available:'
480495
endef
481496

@@ -510,6 +525,10 @@ endef
510525
$(eval $(call gen_generic_defconfigs,32 64,r1 r2 r6,eb el))
511526
$(eval $(call gen_generic_defconfigs,micro32,r2,eb el))
512527

528+
define describe_generic_defconfig
529+
$(subst 32r,MIPS32 r,$(subst 64r,MIPS64 r,$(subst el, little endian,$(patsubst %_defconfig,%,$(1)))))
530+
endef
531+
513532
.PHONY: $(generic_defconfigs)
514533
$(generic_defconfigs):
515534
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \

0 commit comments

Comments
 (0)