MIPS: kconfig: merge targets qemu_mips and qemu_mips64
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 separately select the CPU type. Thus the
targets qemu_mips and qemu_mips64 can be merged to a single
target.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/mips/Kconfig
board/qemu-mips/Kconfig
configs/qemu_mips64_defconfig
configs/qemu_mips64el_defconfig
configs/qemu_mips_defconfig
configs/qemu_mipsel_defconfig

index b974e8ff07e086377fa2d5d2e3d55fcfbce4119e..4991da2226505dd73c18d9df472d3f786e442046 100644 (file)
@@ -20,6 +20,8 @@ config TARGET_QEMU_MIPS
        select SUPPORTS_LITTLE_ENDIAN
        select SUPPORTS_CPU_MIPS32_R1
        select SUPPORTS_CPU_MIPS32_R2
+       select SUPPORTS_CPU_MIPS64_R1
+       select SUPPORTS_CPU_MIPS64_R2
 
 config TARGET_MALTA
        bool "Support malta"
@@ -47,12 +49,6 @@ config TARGET_PB1X00
        select SUPPORTS_CPU_MIPS32_R1
        select SUPPORTS_CPU_MIPS32_R2
 
-config TARGET_QEMU_MIPS64
-       bool "Support qemu-mips64"
-       select SUPPORTS_BIG_ENDIAN
-       select SUPPORTS_LITTLE_ENDIAN
-       select SUPPORTS_CPU_MIPS64_R1
-       select SUPPORTS_CPU_MIPS64_R2
 
 endchoice
 
index 394534fcc55688676de2df3e1ceb6e6966ef3ba6..18d78b51008f2f271dc81e23d39579b69d0da7cf 100644 (file)
@@ -4,19 +4,7 @@ config SYS_BOARD
        default "qemu-mips"
 
 config SYS_CONFIG_NAME
-       default "qemu-mips"
-
-endif
-
-if TARGET_QEMU_MIPS64
-
-config SYS_CPU
-       default "mips64"
-
-config SYS_BOARD
-       default "qemu-mips"
-
-config SYS_CONFIG_NAME
-       default "qemu-mips64"
+       default "qemu-mips" if 32BIT
+       default "qemu-mips64" if 64BIT
 
 endif
index 36897b997b20fdc5a261b6a56cbefd4163e76438..3608bbe5524b81780c34865bdb20184cea867438 100644 (file)
@@ -1,3 +1,4 @@
 CONFIG_MIPS=y
-CONFIG_TARGET_QEMU_MIPS64=y
+CONFIG_TARGET_QEMU_MIPS=y
 CONFIG_SYS_BIG_ENDIAN=y
+CONFIG_CPU_MIPS64_R1=y
index 70d226ae7f3a2d0efa911d78bd70452794adb4be..a9ebd7b5ff203332141e0e0edc75c6ffb75a60fd 100644 (file)
@@ -1,3 +1,4 @@
 CONFIG_MIPS=y
-CONFIG_TARGET_QEMU_MIPS64=y
+CONFIG_TARGET_QEMU_MIPS=y
 CONFIG_SYS_LITTLE_ENDIAN=y
+CONFIG_CPU_MIPS64_R1=y
index 0a385af2c060c348ce2729762add1d23d4134277..f58dd2200ad5a74f84f1554850d85d1ef281d736 100644 (file)
@@ -1,3 +1,4 @@
 CONFIG_MIPS=y
 CONFIG_TARGET_QEMU_MIPS=y
 CONFIG_SYS_BIG_ENDIAN=y
+CONFIG_CPU_MIPS32_R2=y
index d0acb2897226ff467bc65697bfb52a574cd8a146..84a45116fade481378cb687f3dfeda1e89ed6146 100644 (file)
@@ -1,3 +1,4 @@
 CONFIG_MIPS=y
 CONFIG_TARGET_QEMU_MIPS=y
 CONFIG_SYS_LITTLE_ENDIAN=y
+CONFIG_CPU_MIPS32_R2=y