From d1fa1c0b75a8de15ae27a9a2f9eaa496a5fe6de9 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Mon, 2 Mar 2015 00:06:19 +0100 Subject: vc-graphics: Move to recipes-graphics Signed-off-by: Andrei Gherzan --- recipes-graphics/vc-graphics/files/egl.pc | 10 ++++++++++ recipes-graphics/vc-graphics/files/vchiq.sh | 24 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 recipes-graphics/vc-graphics/files/egl.pc create mode 100644 recipes-graphics/vc-graphics/files/vchiq.sh (limited to 'recipes-graphics/vc-graphics/files') diff --git a/recipes-graphics/vc-graphics/files/egl.pc b/recipes-graphics/vc-graphics/files/egl.pc new file mode 100644 index 0000000..c314202 --- /dev/null +++ b/recipes-graphics/vc-graphics/files/egl.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: egl +Description: egl for RaspberryPI +Version: 0.0 +Libs: -L${libdir} -lEGL -lGLESv2 +Cflags: -I${includedir}/vc -I${includedir}/interface -I${includedir}/interface/vcos -I${includedir}/interface/vcos/pthreads diff --git a/recipes-graphics/vc-graphics/files/vchiq.sh b/recipes-graphics/vc-graphics/files/vchiq.sh new file mode 100644 index 0000000..c73e3a9 --- /dev/null +++ b/recipes-graphics/vc-graphics/files/vchiq.sh @@ -0,0 +1,24 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: vchiq.sh +# Required-Start: $remote_fs rmnologin +# Required-Stop: +# Default-Start: S +# Default-Stop: +# Short-Description: Create /dev/vchiq. +# Description: Get the major number from /proc/devices and use it +# ti create /dev/vchiq +### END INIT INFO + +rm -f /dev/vchiq + +#Get the major number +major=$(awk "\$2==\"vchiq\" {print \$1}" /proc/devices) + +if [ -z "$major" ]; then + echo "Error: Cannot find vchiq in /proc/devices" + exit 2 +else + mknod /dev/vchiq c "$major" 0 + chmod a+w /dev/vchiq +fi -- cgit v1.2.3-54-g00ecf