diff options
author | jinhyung.jo <jinhyung.jo@samsung.com> | 2015-06-18 11:19:59 +0900 |
---|---|---|
committer | jinhyung.jo <jinhyung.jo@samsung.com> | 2015-08-04 17:46:56 +0900 |
commit | 6776039017575c18d90c55a4ac60b1989e373737 (patch) | |
tree | 2cfce40c6ea4e34d0ac8528baa3e4f5ece0e419b /packaging | |
parent | 914510abddda54197bc86247ea1805c16bcb2a19 (diff) | |
download | emulator-yagl-6776039017575c18d90c55a4ac60b1989e373737.tar.gz emulator-yagl-6776039017575c18d90c55a4ac60b1989e373737.tar.bz2 emulator-yagl-6776039017575c18d90c55a4ac60b1989e373737.zip |
YaGL: Modified the startup script
Checks the device node instead of the kernel command
Change-Id: Ib14005a53dd989419b8c49ec72600f107af1ab50
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/emulator-yagl.spec | 2 | ||||
-rwxr-xr-x | packaging/opengl-es-setup-yagl-env.sh | 21 |
2 files changed, 18 insertions, 5 deletions
diff --git a/packaging/emulator-yagl.spec b/packaging/emulator-yagl.spec index 7062af6..b9abd92 100644 --- a/packaging/emulator-yagl.spec +++ b/packaging/emulator-yagl.spec @@ -4,7 +4,7 @@ Name: emulator-yagl Summary: YaGL - OpenGLES acceleration module for emulator Version: 1.4 -Release: 1 +Release: 2 License: MIT #URL: http://www.khronos.org Source0: %{name}-%{version}.tar.gz diff --git a/packaging/opengl-es-setup-yagl-env.sh b/packaging/opengl-es-setup-yagl-env.sh index 6c2be18..38fc8c3 100755 --- a/packaging/opengl-es-setup-yagl-env.sh +++ b/packaging/opengl-es-setup-yagl-env.sh @@ -1,18 +1,31 @@ #!/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_}]" + chown root:video /dev/dri/card0 + chown root:video /dev/yagl + chmod 660 /dev/dri/card0 + chmod 660 /dev/yagl + chsmack -a "*" /dev/dri/card0 + chsmack -a "*" /dev/yagl + echo -e "[${_G} Apply to use hw gles library. ${C_}]" + ln -s -f /usr/lib/yagl/libEGL.so.1.0 /usr/lib/libEGL.so + ln -s -f /usr/lib/yagl/libEGL.so.1.0 /usr/lib/libEGL.so.1 + ln -s -f /usr/lib/yagl/libGLESv1_CM.so.1.0 /usr/lib/libGLESv1_CM.so + ln -s -f /usr/lib/yagl/libGLESv1_CM.so.1.0 /usr/lib/libGLESv1_CM.so.1 + ln -s -f /usr/lib/yagl/libGLESv2.so.1.0 /usr/lib/libGLESv2.so + ln -s -f /usr/lib/yagl/libGLESv2.so.1.0 /usr/lib/libGLESv2.so.1 +elif grep "yagl=1" /proc/cmdline ; then echo -e "[${_G} Emulator support gles hw acceleration. ${C_}]" echo -e "[${_G} Change permission of /dev/yagl. ${C_}]" chown root:video /dev/dri/card0 chown root:video /dev/yagl - chown root:video /dev/slp_global_lock chmod 660 /dev/dri/card0 chmod 660 /dev/yagl - chmod 660 /dev/slp_global_lock chsmack -a "*" /dev/dri/card0 chsmack -a "*" /dev/yagl - chsmack -a "*" /dev/slp_global_lock echo -e "[${_G} Apply to use hw gles library. ${C_}]" ln -s -f /usr/lib/yagl/libEGL.so.1.0 /usr/lib/libEGL.so ln -s -f /usr/lib/yagl/libEGL.so.1.0 /usr/lib/libEGL.so.1 |