summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorjinhyung.jo <jinhyung.jo@samsung.com>2014-12-16 14:49:24 +0900
committerjinhyung.jo <jinhyung.jo@samsung.com>2014-12-16 15:31:22 +0900
commitb2b6c1d9743241b78d25a2d63a68135ea9261798 (patch)
treead19bd810ffe02962c21748e72eb6810a10927ae /packaging
parent1de389884a211e241f3aa9b5bd0188cb91f5c0e1 (diff)
downloademulator-yagl-b2b6c1d9743241b78d25a2d63a68135ea9261798.tar.gz
emulator-yagl-b2b6c1d9743241b78d25a2d63a68135ea9261798.tar.bz2
emulator-yagl-b2b6c1d9743241b78d25a2d63a68135ea9261798.zip
YaGL: Modified the startup scriptarchives/tizen_20150513
Checks the device node instead of the kernel command. Change-Id: I69aa6e322eb45d22454b56199eb12ff661c16439 Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/emul-opengl-yagl.service1
-rwxr-xr-xpackaging/virtgl.sh6
2 files changed, 3 insertions, 4 deletions
diff --git a/packaging/emul-opengl-yagl.service b/packaging/emul-opengl-yagl.service
index 9f716a3..5682ae3 100644
--- a/packaging/emul-opengl-yagl.service
+++ b/packaging/emul-opengl-yagl.service
@@ -3,7 +3,6 @@ Description=OpenGL "YAGL"
DefaultDependencies=no
After=emul-opengl-mode.service
Before=basic.target
-ConditionKernelCommandLine=yagl=1
[Service]
Type=oneshot
diff --git a/packaging/virtgl.sh b/packaging/virtgl.sh
index 25521ee..6e62868 100755
--- a/packaging/virtgl.sh
+++ b/packaging/virtgl.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-
+
echo -e "[${_G} Opengl-es acceleration module setting. ${C_}]"
-if grep "yagl=1" /proc/cmdline ; then
+if [ -e /dev/yagl ] ; then
echo -e "[${_G} Emulator support gles hw acceleration. ${C_}]"
echo -e "[${_G} Change permission of /dev/yagl. ${C_}]"
chmod 666 /dev/yagl
@@ -16,7 +16,7 @@ if grep "yagl=1" /proc/cmdline ; then
rm -f /usr/lib/egl_gallium.so
rm -f /usr/lib/libglapi.so*
systemctl set-environment ELM_ENGINE=gl
-elif grep "gles=1" /proc/cmdline ; then
+elif [ -e /dev/glmem ] ; then
echo -e "[${_G} Emulator support gles hw acceleration. ${C_}]"
echo -e "[${_G} Change permission of /dev/glmem. ${C_}]"
chmod 666 /dev/glmem