ff037fe543
Fix the following build failure: /tmp/ccuwJnnt.s:124: Error: selected processor does not support `umull ip,r6,r2,r1' in Thumb mode /tmp/ccuwJnnt.s:159: Error: selected processor does not support `umull ip,r0,r7,r1' in Thumb mode Fixes: http://autobuild.buildroot.net/results/610/61094bc7b7eb1d1e49bf8fcd1864b5cd3d7c4499/ Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
44 lines
1.1 KiB
Makefile
44 lines
1.1 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
|
|
|
|
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
|
MPIR_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|