aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Hogan <jhogan@kernel.org>2018-02-09 11:11:58 -0500
committerJames Hogan <jhogan@kernel.org>2018-03-05 10:11:42 -0500
commitcccd0b9a72d27f681c2e45da0c263a46e5c63926 (patch)
tree4293953959517932be8b5f05925a2863c7bf5419
parent318df8062852b6b7b6a9b2667289eca77fe42e3b (diff)
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/
-rw-r--r--arch/mips/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 22aa38b28d33..2ed4c8927701 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -476,6 +476,21 @@ define archhelp
476 echo 476 echo
477 echo ' {micro32,32,64}{r1,r2,r6}{el,}_defconfig <BOARDS="list of boards">' 477 echo ' {micro32,32,64}{r1,r2,r6}{el,}_defconfig <BOARDS="list of boards">'
478 echo 478 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
479 echo ' Otherwise, the following default configurations are available:' 494 echo ' Otherwise, the following default configurations are available:'
480endef 495endef
481 496
@@ -510,6 +525,10 @@ endef
510$(eval $(call gen_generic_defconfigs,32 64,r1 r2 r6,eb el)) 525$(eval $(call gen_generic_defconfigs,32 64,r1 r2 r6,eb el))
511$(eval $(call gen_generic_defconfigs,micro32,r2,eb el)) 526$(eval $(call gen_generic_defconfigs,micro32,r2,eb el))
512 527
528define describe_generic_defconfig
529$(subst 32r,MIPS32 r,$(subst 64r,MIPS64 r,$(subst el, little endian,$(patsubst %_defconfig,%,$(1)))))
530endef
531
513.PHONY: $(generic_defconfigs) 532.PHONY: $(generic_defconfigs)
514$(generic_defconfigs): 533$(generic_defconfigs):
515 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \ 534 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \