2017-04-13 22:32:01 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2017-04-21 13:27:11 +02:00
|
|
|
ifeq ($(BR2_MIPS_NABI32),y)
|
|
|
|
MPIR_CONF_OPTS += ABI=n32
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_MIPS_NABI64),y)
|
|
|
|
MPIR_CONF_OPTS += ABI=64
|
|
|
|
endif
|
|
|
|
|
2017-05-08 21:45:48 +02:00
|
|
|
# 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
|
|
|
|
|
2017-05-08 21:45:49 +02:00
|
|
|
# Optimized mips32/mips64 code not suitable for mips32r6/mips64r6
|
2017-05-10 12:55:46 +02:00
|
|
|
ifeq ($(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6),y)
|
2017-05-08 21:45:49 +02:00
|
|
|
MPIR_CONF_ENV += MPN_PATH="generic"
|
|
|
|
endif
|
|
|
|
|
2017-05-08 21:45:50 +02:00
|
|
|
# Optimized powerpc64 code is not suitable for powerpc64le
|
|
|
|
ifeq ($(BR2_powerpc64le),y)
|
|
|
|
MPIR_CONF_ENV += MPN_PATH="generic"
|
|
|
|
endif
|
|
|
|
|
2017-04-13 22:32:01 +02:00
|
|
|
$(eval $(autotools-package))
|