From db0e2c8de03eb78811be8b0b6e41d8c40dcd097e Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Wed, 7 Apr 2021 11:23:27 +0300 Subject: Add support for armv7 hardfloat build Change-Id: I9286dd199670e6311aee3c040d7b02a401522dd4 Signed-off-by: Slava Barinov Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5369 Reviewed-by: Georgios Pinitas Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 9190d490d7..ea140f52ff 100644 --- a/SConstruct +++ b/SConstruct @@ -45,7 +45,7 @@ vars.AddVariables( BoolVariable("asserts", "Enable asserts (this flag is forced to 1 for debug=1)", False), BoolVariable("logging", "Logging (this flag is forced to 1 for debug=1)", False), EnumVariable("arch", "Target Architecture", "armv7a", - allowed_values=("armv7a", "arm64-v8a", "arm64-v8.2-a", "arm64-v8.2-a-sve", "arm64-v8.2-a-sve2", "x86_32", "x86_64", + allowed_values=("armv7a", "armv7a-hf", "arm64-v8a", "arm64-v8.2-a", "arm64-v8.2-a-sve", "arm64-v8.2-a-sve2", "x86_32", "x86_64", "armv8a", "armv8.2-a", "armv8.2-a-sve", "armv8.6-a", "armv8.6-a-sve", "armv8.6-a-sve2", "armv8r64", "x86")), EnumVariable("estate", "Execution State", "auto", allowed_values=("auto", "32", "64")), EnumVariable("os", "Target OS", "linux", allowed_values=("linux", "android", "tizen", "macos", "bare_metal")), @@ -204,7 +204,7 @@ if 'v7a' in env['estate'] and env['estate'] == '64': prefix = "" if 'v7a' in env['arch']: env.Append(CXXFLAGS = ['-march=armv7-a', '-mthumb', '-mfpu=neon']) - if env['os'] == 'android' or env['os'] == 'tizen': + if (env['os'] == 'android' or env['os'] == 'tizen') and not 'hf' in env['arch']: env.Append(CXXFLAGS = ['-mfloat-abi=softfp']) else: env.Append(CXXFLAGS = ['-mfloat-abi=hard']) -- cgit v1.2.1