[PATCH 4/7] MIPS: Kconfig: Only allow 32-bit microMIPS builds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Only allow 32-bit microMIPS builds, we're not ready yet for 64-bit 
microMIPS support.

QEMU does have support for the 64-bit microMIPS ISA and with minor 
tweaks it is possible to have a 64-bit processor emulated there that 
runs microMIPS code, so despite the lack of actual 64-bit microMIPS 
hardware there is a way to run 64-bit microMIPS Linux, but it can all be 
considered early development and we are not there yet.  Userland tools 
are lacking too, e.g. GCC produces bad code:

{standard input}: Assembler messages:
{standard input}:380: Warning: wrong size instruction in a 16-bit branch delay slot

And our build fails early on, so disable the configuration, for the sake 
of automatic random config checkers if nothing else.  Whoever needs to 
experiment with 64-bit microMIPS support can revert this change easily.

Signed-off-by: Maciej W. Rozycki <macro@xxxxxxxxxxxxxxxx>
---
linux-umips-32bit.diff
Index: linux-3.18-rc4-malta/arch/mips/Kconfig
===================================================================
--- linux-3.18-rc4-malta.orig/arch/mips/Kconfig	2014-11-15 05:55:56.441902868 +0000
+++ linux-3.18-rc4-malta/arch/mips/Kconfig	2014-11-15 05:56:01.941907996 +0000
@@ -2115,7 +2115,7 @@ config CPU_HAS_SMARTMIPS
 	  here.
 
 config CPU_MICROMIPS
-	depends on SYS_SUPPORTS_MICROMIPS
+	depends on 32BIT && SYS_SUPPORTS_MICROMIPS
 	bool "Build kernel using microMIPS ISA"
 	help
 	  When this option is enabled the kernel will be built using the





[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux