dd9b085daf
Commit ef9eebf65f
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>
40 lines
1.0 KiB
Makefile
40 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# mpir
|
|
#
|
|
################################################################################
|
|
|
|
MPIR_VERSION = 3.0.0
|
|
MPIR_SITE = http://www.mpir.org
|
|
MPIR_SOURCE = mpir-$(MPIR_VERSION).tar.bz2
|
|
MPIR_LICENSE = LGPL-3.0+
|
|
MPIR_LICENSE_FILES = COPYING.LIB
|
|
MPIR_INSTALL_STAGING = YES
|
|
MPIR_DEPENDENCIES = gmp host-yasm
|
|
|
|
ifeq ($(BR2_MIPS_NABI32),y)
|
|
MPIR_CONF_OPTS += ABI=n32
|
|
endif
|
|
|
|
ifeq ($(BR2_MIPS_NABI64),y)
|
|
MPIR_CONF_OPTS += ABI=64
|
|
endif
|
|
|
|
# The optimized ARM assembly code uses ARM-only (i.e not Thumb1/2
|
|
# compatible) instructions.
|
|
ifeq ($(BR2_arm)$(BR2_armeb):$(BR2_ARM_CPU_HAS_ARM),y:)
|
|
MPIR_CONF_ENV += MPN_PATH="generic"
|
|
endif
|
|
|
|
# Optimized mips32/mips64 code not suitable for mips32r6/mips64r6
|
|
ifeq ($(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6),y)
|
|
MPIR_CONF_ENV += MPN_PATH="generic"
|
|
endif
|
|
|
|
# Optimized powerpc64 code is not suitable for powerpc64le
|
|
ifeq ($(BR2_powerpc64le),y)
|
|
MPIR_CONF_ENV += MPN_PATH="generic"
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|