mpir: fix build on MIPS R6 CPUs
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Wed, 10 May 2017 10:55:46 +0000 (11:55 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 10 May 2017 21:33:37 +0000 (23:33 +0200)
Commit ef9eebf65f554d9aacfd420600c8ba17787151a8 tried to fix this
problem in a wrong way. It was fixed only for generic R6 CPUs, so the
problem still persist if you choose any other R6 CPU, like I6400 for
instance.

Fix it properly by using the right kconfig options.

Fixes:
  http://autobuild.buildroot.net/results/f33/f33cb1e0b49fe8aee68fb4b66ea4c304b71a6f8f/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/mpir/mpir.mk

index 697e8381142ff513589d5be36f7b7b7ab1cfcc5d..91f704d30cd93fe00bdd903081548f7f645f20fc 100644 (file)
@@ -27,7 +27,7 @@ MPIR_CONF_ENV += MPN_PATH="generic"
 endif
 
 # Optimized mips32/mips64 code not suitable for mips32r6/mips64r6
-ifeq ($(BR2_mips_32r6)$(BR2_mips_64r6),y)
+ifeq ($(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6),y)
 MPIR_CONF_ENV += MPN_PATH="generic"
 endif