aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2020-03-23 08:29:02 +0900
committerInki Dae <inki.dae@samsung.com>2020-03-25 00:18:07 +0000
commit51a9558d484e812707a776efceef18b93698cec9 (patch)
tree7e0e077180b97d0adb6345b21c0cad874a33b84a /SConstruct
parent689c968239180eda4263e34c3d450093d4a0450d (diff)
downloadComputeLibrary-51a9558d484e812707a776efceef18b93698cec9.tar.gz
Add Tizen platform support
This patch adds Tizen[1] platform support. Tizen platform uses different toolchain prefix so this patch adds a new OS type, tizen, to SConstruct. To build ARM Compute Library for Tizen platform, scons ... os=tizen ... [1] https://www.tizen.org/ Change-Id: I3d0a0c315aaf369c3c4e81d87940694fc7e484d2 Signed-off-by: Inki Dae <inki.dae@samsung.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2915 Reviewed-by: Pablo Marquez <pablo.tello@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 6 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index a7d2c108dd..668e9a73d9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -44,7 +44,7 @@ vars.AddVariables(
allowed_values=("armv7a", "arm64-v8a", "arm64-v8.2-a", "arm64-v8.2-a-sve", "x86_32", "x86_64",
"armv8a", "armv8.2-a", "armv8.2-a-sve", "armv8.6-a", "x86")),
EnumVariable("estate", "Execution State", "auto", allowed_values=("auto", "32", "64")),
- EnumVariable("os", "Target OS", "linux", allowed_values=("linux", "android", "bare_metal")),
+ EnumVariable("os", "Target OS", "linux", allowed_values=("linux", "android", "tizen", "bare_metal")),
EnumVariable("build", "Build type", "cross_compile", allowed_values=("native", "cross_compile", "embed_only")),
BoolVariable("examples", "Build example programs", True),
BoolVariable("gemm_tuner", "Build gemm_tuner programs", True),
@@ -193,7 +193,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':
+ if env['os'] == 'android' or env['os'] == 'tizen':
env.Append(CXXFLAGS = ['-mfloat-abi=softfp'])
else:
env.Append(CXXFLAGS = ['-mfloat-abi=hard'])
@@ -227,6 +227,8 @@ if 'x86' not in env['arch']:
prefix = "arm-eabi-"
elif env['os'] == 'android':
prefix = "arm-linux-androideabi-"
+ elif env['os'] == 'tizen':
+ prefix = "armv7l-tizen-linux-gnueabi-"
elif env['estate'] == '64' and 'v8' in env['arch']:
if env['os'] == 'linux':
prefix = "aarch64-linux-gnu-"
@@ -234,6 +236,8 @@ if 'x86' not in env['arch']:
prefix = "aarch64-elf-"
elif env['os'] == 'android':
prefix = "aarch64-linux-android-"
+ elif env['os'] == 'tizen':
+ prefix = "aarch64-tizen-linux-gnu-"
if env['build'] == 'native':
prefix = ""