From a5b4fe80c18329aa044fc1678d44ba76a45aea5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Piku=C5=82a?= Date: Mon, 7 Nov 2022 15:18:32 +0100 Subject: [PATCH] riscv64: Add support for RISC-V MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ia6d62a0cea22be8fa8e0a4a15e75498f0ac1a8ad Signed-off-by: Łukasz Stelmach --- build_common/SConscript | 2 +- packaging/iotivity.spec | 3 +++ resource/csdk/connectivity/build/SConscript | 2 +- tools/tizen/iotivity-vd-tv-es-tizen30.spec | 3 +++ tools/tizen/iotivity-vd-tv-tizen30.spec | 3 +++ tools/tizen/iotivity.spec | 3 +++ 6 files changed, 14 insertions(+), 2 deletions(-) diff --git a/build_common/SConscript b/build_common/SConscript index ed663ef..4bed93b 100755 --- a/build_common/SConscript +++ b/build_common/SConscript @@ -19,7 +19,7 @@ host_target_map = { # Map of os and allowed archs (os: allowed archs) os_arch_map = { 'linux': ['x86', 'x86_64', 'arm', 'arm-v7a', 'armeabi-v7a', 'arm64'], - 'tizen': ['x86', 'x86_64', 'arm', 'arm-v7a', 'armeabi-v7a', 'arm64'], + 'tizen': ['x86', 'x86_64', 'arm', 'arm-v7a', 'armeabi-v7a', 'arm64', 'riscv64'], 'android': ['x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'armeabi-v7a-hard', 'arm64-v8a'], 'windows': ['x86', 'amd64', 'arm'], 'msys_nt':['x86', 'x86_64'], diff --git a/packaging/iotivity.spec b/packaging/iotivity.spec index 6e92627..646e2e5 100644 --- a/packaging/iotivity.spec +++ b/packaging/iotivity.spec @@ -46,6 +46,9 @@ Source1002: %{name}-test.manifest %ifarch aarch64 %define TARGET_ARCH "arm64" %endif +%ifarch riscv64 +%define TARGET_ARCH "riscv64" +%endif %ifarch x86_64 %define TARGET_ARCH "x86_64" %endif diff --git a/resource/csdk/connectivity/build/SConscript b/resource/csdk/connectivity/build/SConscript index 05be021..946dd49 100644 --- a/resource/csdk/connectivity/build/SConscript +++ b/resource/csdk/connectivity/build/SConscript @@ -15,7 +15,7 @@ host_target_map = { # Map of os and allowed archs (os: allowed archs) os_arch_map = { 'linux': ['x86', 'x86_64', 'arm', 'arm64'], - 'tizen': ['x86', 'x86_64', 'arm', 'arm64'], + 'tizen': ['x86', 'x86_64', 'arm', 'arm64', 'riscv64'], 'android': ['x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'armeabi-v7a-hard', 'arm64-v8a'], 'windows': ['x86', 'amd64', 'arm'], 'darwin': ['i386', 'x86_64'], diff --git a/tools/tizen/iotivity-vd-tv-es-tizen30.spec b/tools/tizen/iotivity-vd-tv-es-tizen30.spec index 6b4b9b4..50e3129 100644 --- a/tools/tizen/iotivity-vd-tv-es-tizen30.spec +++ b/tools/tizen/iotivity-vd-tv-es-tizen30.spec @@ -46,6 +46,9 @@ Source1002: %{name}-test.manifest %ifarch aarch64 %define TARGET_ARCH "arm64" %endif +%ifarch riscv64 +%define TARGET_ARCH "riscv64" +%endif %ifarch x86_64 %define TARGET_ARCH "x86_64" %endif diff --git a/tools/tizen/iotivity-vd-tv-tizen30.spec b/tools/tizen/iotivity-vd-tv-tizen30.spec index 6c173bd..6568be1 100644 --- a/tools/tizen/iotivity-vd-tv-tizen30.spec +++ b/tools/tizen/iotivity-vd-tv-tizen30.spec @@ -46,6 +46,9 @@ Source1002: %{name}-test.manifest %ifarch aarch64 %define TARGET_ARCH "arm64" %endif +%ifarch riscv64 +%define TARGET_ARCH "riscv64" +%endif %ifarch x86_64 %define TARGET_ARCH "x86_64" %endif diff --git a/tools/tizen/iotivity.spec b/tools/tizen/iotivity.spec index 5b9e3e3..5b3f3df 100755 --- a/tools/tizen/iotivity.spec +++ b/tools/tizen/iotivity.spec @@ -46,6 +46,9 @@ Source1002: %{name}-test.manifest %ifarch aarch64 %define TARGET_ARCH "arm64" %endif +%ifarch riscv64 +%define TARGET_ARCH "riscv64" +%endif %ifarch x86_64 %define TARGET_ARCH "x86_64" %endif -- 2.7.4