Skip to content

Commit 9cff2b2

Browse files
committed
Added download of VIM3 files with a platform check - Adds the lib
to the ldconfig path
1 parent 5a0a19d commit 9cff2b2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docker/install_deps.sh

+13
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ if [[ "${TARGETARCH}" == "arm64" ]]; then
7575
libva-drm2 mesa-va-drivers
7676
fi
7777

78+
# Check if the platform is a VIM3 and download TF delegate drivers for NPU
79+
VIM3_RELEASE="Vim3_tflite_delegate-0.1"
80+
if cat /proc/cpuinfo | grep -q VIM3
81+
then
82+
wget -q https://github.com/RichardPar/Vim3_tflite_delegate/archive/refs/tags/v0.1.tar.gz -O - | tar -xz
83+
if [ -d "$VIM3_RELEASE" ]; then
84+
mv "$VIM3_RELEASE/library" /lib/vim3
85+
echo "/lib/vim3" > /etc/ld.so.conf.d/vim3.conf
86+
rm -rf "$VIM3_RELEASE"
87+
fi
88+
fi
89+
7890
# not sure why 32bit arm requires all these
7991
if [[ "${TARGETARCH}" == "arm" ]]; then
8092
apt-get -qq install --no-install-recommends --no-install-suggests -y \
@@ -85,6 +97,7 @@ if [[ "${TARGETARCH}" == "arm" ]]; then
8597
libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
8698
fi
8799

100+
88101
apt-get purge gnupg apt-transport-https wget xz-utils -y
89102
apt-get clean autoclean -y
90103
apt-get autoremove --purge -y

0 commit comments

Comments
 (0)