Skip to contentSkip to conversation

Denys Dmytriyenko : libgles-omap3-x11: add missing X11 version of the recipe, after it got split

PATCH Arago Project git 1 participant 1 message Jun 21, 2013

lore
Share & tools
lore
#0 lore raw
Module: meta-ti
Branch: dylan
Commit: 14671da0be5ffc45b23b37f28f15eb21928b4ca8
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=14671da0be5ffc45b23b37f28f15eb21928b4ca8
Author: Denys Dmytriyenko <[email protected]>
Date:   Fri Jun 21 14:32:12 2013 -0400

libgles-omap3-x11: add missing X11 version of the recipe, after it got split

---

 .../99-bufferclass.rules                           |    7 ++
 .../libgles/libgles-omap3-x11-4.09.00.01/cputype   |   17 +++++
 .../libgles-omap3-x11-4.09.00.01/sample.desktop    |    8 ++
 .../libgles/libgles-omap3-x11_4.09.00.01.bb        |   75 ++++++++++++++++++++
 4 files changed, 107 insertions(+), 0 deletions(-)
recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/99-bufferclass.rules new file +7 -0
new file mode 100644
index 0000000..780423b
@@ -0,0 +1,7 @@
+# Give everyone access to bufferclass nodes and make a compatibility symlink for the first one
+SUBSYSTEM=="bccat", MODE="0666"
+KERNEL=="bccat0", SYMLINK+="bc_cat", MODE="0666"
+
+# Give everyone access to v4l nodes
+SUBSYSTEM=="video4linux", MODE="0666"
+
recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/cputype new file +17 -0
new file mode 100755
index 0000000..4448c30
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+machine_id() { # return the machine ID
+	awk 'BEGIN { FS=": " } /Hardware/ \
+		{ gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo
+}
+
+if [ "$(machine_id)" = "ti8168evm" ] ; then
+	echo TI816x
+elif [ "$(machine_id)" = "am335xevm" ] ; then
+    echo TI33XX
+else
+	devmem2 0x4800244c | \
+	grep 'Read at address' | \
+	sed -e 's/.*): //' | \
+	sed -e 's/0x00005C00/OMAP3503/' -e 's/0x00001C00/OMAP3515/' -e 's/0x00004C00/OMAP3525/' -e 's/0x00000C00/OMAP3530/' -e 's/0x00005E00/OMAP3503/' -e 's/0x00001E00/OMAP3515/' -e 's/0x00004E00/OMAP3525/' -e 's/0x00000E00/OMAP3530/' -e 's/0x00000CC0/OMAP3530/'
+fi
recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/sample.desktop new file +8 -0
new file mode 100644
index 0000000..6bacac9
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=NAME Demo
+Comment=OGLES Demo
+Exec=EXEC
+Icon=star
+Type=Application
+Categories=Graphics;
+
recipes-graphics/libgles/libgles-omap3-x11_4.09.00.01.bb new file +75 -0

75 lines not on this page · raw message