[PATCH v2 4/8] MIPS: NI 169445: Only include in suitable kernels

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

 



The NI 169445 board uses a little endian MIPS32r2 CPU, and therefore
including board support in kernels that are unable to run on such a CPU
is pointless.

Specify requirements in the board config fragment that cause the NI
169445 board support to only be included in generic kernels that target
little endian CPUs & architecture revisions prior to MIPSr6.

For example, NI 169445 support will be included when configuring using
32r2el_defconfig but not when using 64r6_defconfig.

Signed-off-by: Paul Burton <paul.burton@xxxxxxxxxx>
Acked-by: Nathan Sullivan <nathan.sullivan@xxxxxx>
Cc: James Hogan <james.hogan@xxxxxxxxxx>
Cc: Nathan Sullivan <nathan.sullivan@xxxxxx>
Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
Cc: linux-mips@xxxxxxxxxxxxxx

---

Changes in v2:
- Use CONFIG_CPU_ISA_GE_R6 to allow inclusion in pre-R2 kernels

 arch/mips/configs/generic/board-ni169445.config | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/mips/configs/generic/board-ni169445.config b/arch/mips/configs/generic/board-ni169445.config
index 0bae1f861a5b..a8afd0950da1 100644
--- a/arch/mips/configs/generic/board-ni169445.config
+++ b/arch/mips/configs/generic/board-ni169445.config
@@ -1,3 +1,6 @@
+# require CONFIG_CPU_ISA_GE_R6=n
+# require CONFIG_CPU_LITTLE_ENDIAN=y
+
 CONFIG_FIT_IMAGE_FDT_NI169445=y
 
 CONFIG_SERIAL_8250=y
-- 
2.14.0





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

  Powered by Linux