diff options
Diffstat (limited to 'packaging/armnn.spec')
-rw-r--r-- | packaging/armnn.spec | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/packaging/armnn.spec b/packaging/armnn.spec index 35e112418..9ff541622 100644 --- a/packaging/armnn.spec +++ b/packaging/armnn.spec @@ -76,8 +76,15 @@ cp %{SOURCE1001} . # ARMNN needs xxd to dump a given file with hex type when compiling. mkdir -p %{buildroot}%{_bindir} + +%ifarch aarch64 +cp packaging/xxd64 %{buildroot}/%{_bindir}/xxd +chmod 777 %{buildroot}/%{_bindir}/xxd +%else cp packaging/xxd %{buildroot}/%{_bindir}/ chmod 777 %{buildroot}/%{_bindir}/xxd +%endif + export PATH=$PATH:%{buildroot}/%{_bindir} cp packaging/%{name}.manifest ./ @@ -115,10 +122,10 @@ cmake -DARMCOMPUTENEON=1 \ -DFLATC=/usr/bin/flatc \ %endif # TF_LITE_SUPPORT -DBUILD_TESTS=1 \ - -DARMCOMPUTE_CORE_LIBRARY_DEBUG=/usr/lib/libarm_compute_core.so \ - -DARMCOMPUTE_CORE_LIBRARY_RELEASE=/usr/lib/libarm_compute_core.so \ - -DARMCOMPUTE_LIBRARY_DEBUG=/usr/lib/libarm_compute.so \ - -DARMCOMPUTE_LIBRARY_RELEASE=/usr/lib/libarm_compute.so + -DARMCOMPUTE_CORE_LIBRARY_DEBUG=%{_libdir}/libarm_compute_core.so \ + -DARMCOMPUTE_CORE_LIBRARY_RELEASE=%{_libdir}/libarm_compute_core.so \ + -DARMCOMPUTE_LIBRARY_DEBUG=%{_libdir}/libarm_compute.so \ + -DARMCOMPUTE_LIBRARY_RELEASE=%{_libdir}/libarm_compute.so CPU_JOB_NUM=`grep processor /proc/cpuinfo | awk '{field=$NF};END{print field+1}'` make -j ${CPU_JOB_NUM} |