From 223607c90f80441284482bf4480a74d1fcf5edce Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 19 Apr 2013 14:54:21 +0200 Subject: [PATCH] build: fix arm build after v8 upgrade V8 was upgraded to 3.18 in commit 9f68226. The knobs that control the ARM build have changed in a number of ways. This commit patches the configure script to reflect that. Should fix the Raspberry Pi build. Fixes #5329. --- configure | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/configure b/configure index 09f3c40978..4f6874453f 100755 --- a/configure +++ b/configure @@ -341,7 +341,7 @@ def is_arm_neon(): return '__ARM_NEON__' in cc_macros() -def arm_hard_float_abi(): +def is_arm_hard_float_abi(): """Check for hardfloat or softfloat eabi on ARM""" # GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify # the Floating Point ABI used (PCS stands for Procedure Call Standard). @@ -421,21 +421,15 @@ def compiler_version(): def configure_arm(o): - # V8 on ARM requires that armv7 is set. CPU Model detected by - # the presence of __ARM_ARCH_7__ and the like defines in compiler if options.arm_float_abi: - hard_float = options.arm_float_abi == 'hard' + arm_float_abi = options.arm_float_abi else: - hard_float = arm_hard_float_abi() - - armv7 = is_arch_armv7() - # CHECKME VFPv3 implies ARMv7+ but is the reverse true as well? - fpu = 'vfpv3' if armv7 else 'vfpv2' - - o['variables']['armv7'] = int(armv7) - o['variables']['arm_fpu'] = fpu + arm_float_abi = 'hard' if is_arm_hard_float_abi() else 'default' + o['variables']['armv7'] = int(is_arch_armv7()) + o['variables']['arm_fpu'] = 'vfpv3' # V8 3.18 no longer supports VFP2. o['variables']['arm_neon'] = int(is_arm_neon()) - o['variables']['v8_use_arm_eabi_hardfloat'] = b(hard_float) + o['variables']['arm_thumb'] = 0 # -marm + o['variables']['arm_float_abi'] = arm_float_abi def configure_node(o):