![Lothar Felten](/assets/img/avatar_default.png)
ti-sgx-um - Bump the version that matches TI SDK 06.00.00.07 plus one pull request that updates the EGL/GLES headers required to build qt5base. - Rewrite the init script, following the current template and using the pvrsrvctl command (pvrsrvinit does not exit anymore). - Remove powervr.ini, no longer used in the TI SDK. - Select and add a dependency on wayland, or else packages that link to libEGL (e.g. cairo) fail to link due to a missing libwayland-server. - Update license file name. ti-sgx-demos - Bump the version that matches TI SDK 06.00.00.07 plus one pull request (matching ti-sgx-um). ti-sgx-km - Bump the version that matches TI SDK 06.00.00.07. - Remove stray empty lines. - Fix license file path. All packages - Use HTTP to clone Git repositories. - Update URL in Config.in files, pointing to cgit and using HTTPS. - Add hashes for all license files. The buildroot package only supports the target am335x. Support for other boards can be added by adding menu entries to select the correct target product. Signed-off-by: Lothar Felten <lothar.felten@gmail.com> Signed-off-by: Carlos Santos <unixmania@gmail.com> [Thomas: - add missing depends on BR2_PACKAGE_HAS_UDEV from Config.in, inherited from ti-sgx-libgbm] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
57 lines
864 B
Bash
57 lines
864 B
Bash
#!/bin/sh
|
|
|
|
pvrsrvkm_ko="/lib/modules/$(/bin/uname -r)/extra/pvrsrvkm.ko"
|
|
|
|
pvr_loaded() {
|
|
/sbin/lsmod | /bin/grep -q '^\<pvrsrvkm\>'
|
|
}
|
|
|
|
pvr_load() {
|
|
/sbin/insmod "$pvrsrvkm_ko" > /dev/null 2>&1
|
|
}
|
|
|
|
start() {
|
|
printf 'Loading pvrsrvkm module: '
|
|
pvr_loaded || pvr_load
|
|
status=$?
|
|
if [ "$status" -eq 0 ]; then
|
|
printf 'Starting PowerVR services: '
|
|
/usr/bin/pvrsrvctl --start --no-module > /dev/null 2>&1
|
|
status=$?
|
|
fi
|
|
if [ "$status" -eq 0 ]; then
|
|
echo "OK"
|
|
else
|
|
echo "FAIL"
|
|
fi
|
|
return "$status"
|
|
}
|
|
|
|
stop() {
|
|
printf 'Starting PowerVR services: '
|
|
/usr/bin/pvrsrvctl --stop > /dev/null 2>&1
|
|
status=$?
|
|
if [ "$status" -eq 0 ]; then
|
|
echo "OK"
|
|
else
|
|
echo "FAIL"
|
|
fi
|
|
return "$status"
|
|
}
|
|
|
|
restart() {
|
|
stop
|
|
sleep 1
|
|
start
|
|
}
|
|
|
|
case "$1" in
|
|
start|stop|restart)
|
|
"$1";;
|
|
reload)
|
|
restart;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart|reload}"
|
|
exit 1
|
|
esac
|