packaging: Install xxd binary
authorInki Dae <inki.dae@samsung.com>
Fri, 29 May 2020 05:36:25 +0000 (14:36 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 19 Apr 2021 04:58:54 +0000 (13:58 +0900)
ARMNN needs xxd binary to dump a given file with hex type
when compiling.

Change-Id: I0802c3cd5749173d8856781b98573e8585add862
Signed-off-by: Inki Dae <inki.dae@samsung.com>
packaging/armnn.spec

index 6c97e85..1cd0839 100644 (file)
@@ -68,6 +68,12 @@ cp %{SOURCE1001} .
 #protoc tensorflow/core/lib/core/*.proto --cpp_out=.
 #cd -
 
+# ARMNN needs xxd to dump a given file with hex type when compiling.
+mkdir -p %{buildroot}%{_bindir}
+cp packaging/xxd %{buildroot}/%{_bindir}/
+chmod 777 %{buildroot}/%{_bindir}/xxd
+export PATH=$PATH:%{buildroot}/%{_bindir}
+
 #build ArmNN
 cmake -DARMCOMPUTENEON=1                                                                                       \
 %if 0%{?OPEN_CL_SUPPORT} == 1