From 202428509eea7c7f040c93d23800f329e78febae Mon Sep 17 00:00:00 2001 From: Inki Dae Date: Mon, 27 Jul 2020 13:50:18 +0900 Subject: packaging: Fix spec file for v20.05 support Change-Id: I2aec3ec498d70061e2a42b8d1acffd069eb22ca9 Signed-off-by: Inki Dae --- packaging/libarmcl.spec | 17 +++++++++-------- 1 file 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/* -- cgit v1.2.3