summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2020-07-27 13:50:18 +0900
committerInki Dae <inki.dae@samsung.com>2021-03-03 16:46:37 +0900
commit3228aed7fd9148d145b3a804b4b75eaab7e76536 (patch)
tree3bd5b481395f4d1c7bdf65d5e4cfc37fb4876541
parent600d582dc6703dbe9fac25f24c9e30ed30d3f28a (diff)
downloadarmcl-3228aed7fd9148d145b3a804b4b75eaab7e76536.tar.gz
armcl-3228aed7fd9148d145b3a804b4b75eaab7e76536.tar.bz2
armcl-3228aed7fd9148d145b3a804b4b75eaab7e76536.zip
packaging: Fix spec file for v20.05 support
Change-Id: I2aec3ec498d70061e2a42b8d1acffd069eb22ca9 Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--packaging/libarmcl.spec17
1 files changed, 9 insertions, 8 deletions
diff --git a/packaging/libarmcl.spec b/packaging/libarmcl.spec
index 62f2f6fc5..bf251ce92 100644
--- a/packaging/libarmcl.spec
+++ b/packaging/libarmcl.spec
@@ -1,5 +1,5 @@
Name: libarmcl
-Version: v19.11
+Version: v20.05
Release: 1
License: MIT
Url: https://github.com/ARM-software/ComputeLibrary
@@ -40,6 +40,10 @@ cp %{SOURCE1001} .
%build
echo %{_builddir}
+
+# Ps. Tizen toolchain doesn't have generic name of ar and ranlib so
+# 'build=native' is needed not to attach Tizen toolchain prefix
+# but to use native 'ar' and 'ranlib' without any prefix.
scons -j8 \
Werror=0 \
debug=0 \
@@ -49,7 +53,8 @@ scons -j8 \
%if 0%{?OPEN_CL_SUPPORT} == 1
opencl=1 \
%endif # OPEN_CL_SUPPORT
- os=linux \
+ os=tizen \
+ build=native \
%ifarch aarch64
arch=arm64-v8.2-a \
%else
@@ -69,6 +74,7 @@ mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_libdir}/data
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}/usr/include/arm_compute
+mkdir -p %{buildroot}/usr/include/arm_compute/src/core/NEON/kernels/arm_gemm
mkdir -p %{buildroot}/usr/include/support
mkdir -p %{buildroot}/usr/include/CL
mkdir -p %{buildroot}/usr/include/half
@@ -77,9 +83,6 @@ mkdir -p %{buildroot}/usr/include/libnpy
install -m 644 build/libarm_compute_core.so %{buildroot}%{_libdir}
install -m 644 build/libarm_compute.so %{buildroot}%{_libdir}
install -m 644 build/libarm_compute_graph.so %{buildroot}%{_libdir}
-%if 0%{?OPEN_CL_SUPPORT} == 1
- install -m 644 build/opencl-1.2-stubs/libOpenCL.so %{buildroot}%{_libdir}
-%endif # OPEN_CL_SUPPORT
%if 0%{?OPEN_CL_SUPPORT} == 1
install -m 644 build/examples/cl_convolution %{buildroot}%{_bindir}
@@ -110,6 +113,7 @@ install -m 644 build/examples/graph_vgg19 %{buildroot}%{_bindir}
%endif # NEON_SUPPORT
cp -r %{_builddir}/%{name}-%{version}/arm_compute/* %{buildroot}/usr/include/arm_compute/
+cp -r %{_builddir}/%{name}-%{version}/src/core/NEON/kernels/arm_gemm/* %{buildroot}/usr/include/arm_compute/src/core/NEON/kernels/arm_gemm/
cp -r %{_builddir}/%{name}-%{version}/support/* %{buildroot}/usr/include/support/
cp -r %{_builddir}/%{name}-%{version}/include/CL/* %{buildroot}/usr/include/CL/
cp -r %{_builddir}/%{name}-%{version}/include/half/* %{buildroot}/usr/include/half/
@@ -126,9 +130,6 @@ cp -r %{_builddir}/%{name}-%{version}/data/* %{buildroot}%{_libdir}/data/
%files devel
%manifest %{name}.manifest
-%if 0%{?OPEN_CL_SUPPORT} == 1
- %{_libdir}/libOpenCL.so
-%endif # OPEN_CL_SUPPORT
%{_includedir}/arm_compute/*
%{_includedir}/support/*
%{_includedir}/CL/*