Source3019: FLATBUFFERS-2.0.tar.gz
Source3020: NEON2SSE.tar.gz
Source3021: remove_const.patch
+Source3022: syscall.patch
%{!?build_type: %define build_type Release}
%{!?npud_build: %define npud_build 1}
tar -xf %{SOURCE3019} -C ./externals
tar -xf %{SOURCE3020} -C ./externals
cp -xf %{SOURCE3021} ./externals
-cd externals/FLATBUFFERS-2.0
-pwd
+cp -xf %{SOURCE3022} ./externals
+pushd externals/FLATBUFFERS-2.0
patch -p1 < ../remove_const.patch
+popd
+
+%ifarch riscv64
+pushd externals/CPUINFO
+patch -p1 < ../syscall.patch
+popd
+%endif
%build
%ifarch arm armv7l armv7hl aarch64 x86_64 %ix86 riscv64