[Dist/Tizen] Install the firmwate to %{_libdir} 62/240962/1
authorWook Song <wook16.song@samsung.com>
Thu, 13 Aug 2020 07:17:52 +0000 (16:17 +0900)
committerWook Song <wook16.song@samsung.com>
Thu, 13 Aug 2020 07:40:54 +0000 (16:40 +0900)
DLDT searches the firmware files for MVNC the directory where the
libinference_engine.so is placed unlike the NCSDK searches
%{_libdir}/mvnc first. By creating symbolic links to the firmware files
of %{_libdir}/mvnc in %{_libdir}, this patch makes the package be
compatible with DLDT as well as NCSDK.

Change-Id: I419dc6e70e94cf421b6781f243be71c0c146149f
Signed-off-by: Wook Song <wook16.song@samsung.com>
packaging/intel-movidius-firmware.spec

index 9f287da7a90c3886b506e5c3460e781ece93833a..023b93f5c23ed66cc69c4856df4fc54277ef38e8 100644 (file)
@@ -26,6 +26,10 @@ cp %{SOURCE1000} .
 mkdir -p %{buildroot}%{FIRMWARE_PATH}
 install -m 0644 ma2450_784/MvNCAPI-ma2450.mvcmd %{buildroot}%{FIRMWARE_PATH}/
 install -m 0644 ma2x8x_784/MvNCAPI-ma2x8x.mvcmd %{buildroot}%{FIRMWARE_PATH}/
+pushd %{buildroot}%{_libdir}
+ln -s ./mvnc/MvNCAPI-ma2450.mvcmd
+ln -s ./mvnc/MvNCAPI-ma2x8x.mvcmd
+popd
 
 %package ma2450
 Summary:               Intel Movidius 2450 Firmware
@@ -39,6 +43,7 @@ This is from https://download.01.org/opencv/2019/openvinotoolkit/R3/inference_en
 %files ma2450
 %manifest %{name}.manifest
 %{FIRMWARE_PATH}/MvNCAPI-ma2450.mvcmd
+%{_libdir}/MvNCAPI-ma2450.mvcmd
 %license LICENSE
 
 %package ma2x8x
@@ -53,9 +58,13 @@ This is from https://download.01.org/opencv/2019/openvinotoolkit/R3/inference_en
 %files ma2x8x
 %manifest %{name}.manifest
 %{FIRMWARE_PATH}/MvNCAPI-ma2x8x.mvcmd
+%{_libdir}/MvNCAPI-ma2x8x.mvcmd
 %license LICENSE
 
 %changelog
+* Thu Aug 13 2020 Wook Song <wook16.song@samsung.com>
+- Include symbolic links to the firmware files of %{FIRMWARE_PATH} in %{_libdir}
+
 * Tue Jun 14 2020 Wook Song <wook16.song@samsung.com>
 - Add a sub-package for MA2x8x (Intel NCS2) firmware