systemd-gpuconfig: Update recipe to new NXP BSP release imx_5.4.70_2.3.1

Add missing gpuconfig script elements

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2021-02-16 14:19:01 +01:00
parent 0095d8c415
commit de7d43a6f0
1 changed files with 9 additions and 0 deletions

View File

@ -1,19 +1,28 @@
#!/bin/sh
CPUREV=$(cat /sys/devices/soc0/soc_id)
FILEVG=/usr/lib/libOpenVG.so
FILEVGLIB=/usr/lib/libOpenVG.so.1
FILEVG3D=/usr/lib/libOpenVG.3d.so.1.1.0
FILEVG355=/usr/lib/libOpenVG.2d.so.1.1.0
if [ -e $FILEVG3D ] && [ -e $FILEVG355 ]
then
if [ -e $FILEVG ]
then
rm -f $FILEVG
fi
if [ -e $FILEVGLIB ]
then
rm -f $FILEVGLIB
fi
if [ $CPUREV == "i.MX6QP" ] || [ $CPUREV == "i.MX6Q" ] || [ $CPUREV == "i.MX6SL" ]
then
# Use GC355 VG
ln -s $FILEVG355 $FILEVG
ln -s $FILEVG355 $FILEVGLIB
else
ln -s $FILEVG3D $FILEVG
ln -s $FILEVG3D $FILEVGLIB
fi
fi