MIPS: kconfig: globally define CONFIG_SYS_CPU for MIPS
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 26 Oct 2014 13:14:07 +0000 (14:14 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sat, 1 Nov 2014 17:18:04 +0000 (18:18 +0100)
Now the user can select the CPU type for each target. Thus
CONFIG_SYS_CPU could be set globally.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/mips/Kconfig
board/dbau1x00/Kconfig
board/imgtec/malta/Kconfig
board/micronas/vct/Kconfig
board/pb1x00/Kconfig
board/qemu-mips/Kconfig

index 623ec66..b974e8f 100644 (file)
@@ -4,6 +4,10 @@ menu "MIPS architecture"
 config SYS_ARCH
        default "mips"
 
+config SYS_CPU
+       default "mips32" if CPU_MIPS32_R1 || CPU_MIPS32_R2
+       default "mips64" if CPU_MIPS64_R1 || CPU_MIPS64_R2
+
 config USE_PRIVATE_LIBGCC
        default y
 
index 1a8946d..3e3cb77 100644 (file)
@@ -1,8 +1,5 @@
 if TARGET_DBAU1X00
 
-config SYS_CPU
-       default "mips32"
-
 config SYS_BOARD
        default "dbau1x00"
 
index 401962c..4c06d0c 100644 (file)
@@ -1,8 +1,5 @@
 if TARGET_MALTA
 
-config SYS_CPU
-       default "mips32"
-
 config SYS_BOARD
        default "malta"
 
index 75046fe..7c69453 100644 (file)
@@ -1,8 +1,5 @@
 if TARGET_VCT
 
-config SYS_CPU
-       default "mips32"
-
 config SYS_BOARD
        default "vct"
 
index ef2844a..251db6a 100644 (file)
@@ -1,8 +1,5 @@
 if TARGET_PB1X00
 
-config SYS_CPU
-       default "mips32"
-
 config SYS_BOARD
        default "pb1x00"
 
index e4d9663..394534f 100644 (file)
@@ -1,8 +1,5 @@
 if TARGET_QEMU_MIPS
 
-config SYS_CPU
-       default "mips32"
-
 config SYS_BOARD
        default "qemu-mips"