summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-05-08 21:45:48 +0200
committerPeter Korsgaard <peter@korsgaard.com>2017-05-09 17:03:23 +0200
commitfa3fbeb1bf4b0d3bed85bbeab4bd0f7b1c13e21a (patch)
treeae3c3039deef9d29088176cba1f2aac1df9bc2e0
parent4c0fdc6730459a225d5a61e8e699ce9329c99f19 (diff)
downloadbuildroot-fa3fbeb1bf4b0d3bed85bbeab4bd0f7b1c13e21a.tar.gz
buildroot-fa3fbeb1bf4b0d3bed85bbeab4bd0f7b1c13e21a.zip
mpir: fix build on ARM Thumb-only platforms
The optimized ARM assembly code is not suitable for Thumb-only platforms, so use the generic code in such situations. Fixes: http://autobuild.buildroot.net/results/4d7f2a1326f75e11693bdd51ad274079b0dd0ce4/ (ARM Cortex-M4 toolchain) Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/mpir/mpir.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/mpir/mpir.mk b/package/mpir/mpir.mk
index b7f3829007..cf17502358 100644
--- a/package/mpir/mpir.mk
+++ b/package/mpir/mpir.mk
@@ -20,4 +20,10 @@ 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
+
$(eval $(autotools-package))
OpenPOWER on IntegriCloud