From: Peter Korsgaard Date: Tue, 26 Jul 2016 23:18:37 +0200 Subject: [Buildroot] [PATCH] nettle: disable assembly optimizations for ARMv7M In-Reply-To: <20160725224844.2ea67984@free-electrons.com> (Thomas Petazzoni's message of "Mon, 25 Jul 2016 22:48:44 +0200") References: <1469405759-3224-1-git-send-email-gustavo@zacarias.com.ar> <20160725224844.2ea67984@free-electrons.com> Message-ID: <87y44oyu6q.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Thomas" == Thomas Petazzoni writes: > Hello, > On Sun, 24 Jul 2016 21:15:59 -0300, Gustavo Zacarias wrote: >> It's thumb2-only and it requires ARM instructions. >> Since V4 and V5 aren't enough either use the V7M knob to avoid >> over-complicating the conditional. Fixes: >> http://autobuild.buildroot.net/results/354/35418d33efa902d3a1a82b2cd58d8db1b1172e49/ >> >> Signed-off-by: Gustavo Zacarias >> --- >> package/nettle/nettle.mk | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/package/nettle/nettle.mk b/package/nettle/nettle.mk >> index c133839..a94a7fc 100644 >> --- a/package/nettle/nettle.mk >> +++ b/package/nettle/nettle.mk >> @@ -15,7 +15,7 @@ NETTLE_LICENSE_FILES = COPYING.LESSERv3 COPYINGv2 >> NETTLE_CONF_OPTS = --disable-openssl >> >> # ARM assembly requires v6+ ISA >> -ifeq ($(BR2_ARM_CPU_ARMV4)$(BR2_ARM_CPU_ARMV5),y) >> +ifeq ($(BR2_ARM_CPU_ARMV4)$(BR2_ARM_CPU_ARMV5)$(BR2_ARM_CPU_ARMV7M),y) > I've applied, but in the end, I'm wondering if the condition wouldn't > be simpler as: > ifeq ($(BR2_ARM_CPU_ARMV6)$(BR2_ARM_CPU_ARMV6),) I take it that you mean: ifeq ($(BR2_ARM_CPU_ARMV6)$(BR2_ARM_CPU_ARMV7A),) We could also simply check for ARM and THUMB2 instructions, E.G.: # needs thumb2 and arm instructions support ifneq ($(BR2_ARM_CPU_HAS_ARM)$(BR2_ARM_CPU_HAS_THUMB2),yy) -- Bye, Peter Korsgaard