summaryrefslogtreecommitdiff
path: root/meta-raspberrypi/recipes-graphics/vc-graphics/files
diff options
context:
space:
mode:
authorDave Cobbley <david.j.cobbley@linux.intel.com>2018-08-14 20:05:37 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-08-23 04:26:31 +0300
commiteb8dc40360f0cfef56fb6947cc817a547d6d9bc6 (patch)
treede291a73dc37168da6370e2cf16c347d1eba9df8 /meta-raspberrypi/recipes-graphics/vc-graphics/files
parent9c3cf826d853102535ead04cebc2d6023eff3032 (diff)
downloadopenbmc-eb8dc40360f0cfef56fb6947cc817a547d6d9bc6.tar.xz
[Subtree] Removing import-layers directory
As part of the move to subtrees, need to bring all the import layers content to the top level. Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-raspberrypi/recipes-graphics/vc-graphics/files')
-rw-r--r--meta-raspberrypi/recipes-graphics/vc-graphics/files/egl.pc10
-rw-r--r--meta-raspberrypi/recipes-graphics/vc-graphics/files/vchiq.sh24
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-raspberrypi/recipes-graphics/vc-graphics/files/egl.pc b/meta-raspberrypi/recipes-graphics/vc-graphics/files/egl.pc
new file mode 100644
index 000000000..c3142022c
--- /dev/null
+++ b/meta-raspberrypi/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/meta-raspberrypi/recipes-graphics/vc-graphics/files/vchiq.sh b/meta-raspberrypi/recipes-graphics/vc-graphics/files/vchiq.sh
new file mode 100644
index 000000000..c73e3a9c6
--- /dev/null
+++ b/meta-raspberrypi/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