File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,18 @@ if [[ "${TARGETARCH}" == "arm64" ]]; then
75
75
libva-drm2 mesa-va-drivers
76
76
fi
77
77
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
+
78
90
# not sure why 32bit arm requires all these
79
91
if [[ " ${TARGETARCH} " == " arm" ]]; then
80
92
apt-get -qq install --no-install-recommends --no-install-suggests -y \
@@ -85,6 +97,7 @@ if [[ "${TARGETARCH}" == "arm" ]]; then
85
97
libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
86
98
fi
87
99
100
+
88
101
apt-get purge gnupg apt-transport-https wget xz-utils -y
89
102
apt-get clean autoclean -y
90
103
apt-get autoremove --purge -y
You can’t perform that action at this time.
0 commit comments