aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Sarbu <florin.sarbu@windriver.com>2014-10-02 21:22:14 +0300
committerHolger Behrens <holger.behrens@windriver.com>2014-10-17 17:29:14 +0200
commit0d6ae3373ab553f5e32b8fb2066a375e154af277 (patch)
treeb2493109d9c9ad8a5e37a896185315d8f7c582ce
parent0c57297c70ae7b973384004e9542d58f409a8229 (diff)
downloadmeta-ivi-0d6ae3373ab553f5e32b8fb2066a375e154af277.tar.gz
meta-ivi-0d6ae3373ab553f5e32b8fb2066a375e154af277.tar.bz2
meta-ivi-0d6ae3373ab553f5e32b8fb2066a375e154af277.zip
base-files: Add LD_PRELOAD to /etc/profile
We need this hack in order to have libEGL preloaded. At this point qt does not link against libEGL. To overcome this we preload the EGL library. Signed-off-by: Florin Sarbu <florin.sarbu@windriver.com> Signed-off-by: Holger Behrens <holger.behrens@windriver.com>
-rw-r--r--meta-ivi-demo/recipes-core/base-files/base-files/add_LD_PRELOAD.patch12
-rw-r--r--meta-ivi-demo/recipes-core/base-files/base-files_%.bbappend3
2 files changed, 15 insertions, 0 deletions
diff --git a/meta-ivi-demo/recipes-core/base-files/base-files/add_LD_PRELOAD.patch b/meta-ivi-demo/recipes-core/base-files/base-files/add_LD_PRELOAD.patch
new file mode 100644
index 0000000..cc3267f
--- /dev/null
+++ b/meta-ivi-demo/recipes-core/base-files/base-files/add_LD_PRELOAD.patch
@@ -0,0 +1,12 @@
+Index: 3.0.14-r89/profile
+===================================================================
+--- 3.0.14-r89.orig/profile 2014-10-02 21:10:40.228250437 +0300
++++ 3.0.14-r89/profile 2014-10-02 21:13:58.292244646 +0300
+@@ -32,5 +32,7 @@
+
+ export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM
+
++export LD_PRELOAD="/usr/lib/libEGL.so"
++
+ umask 022
+
diff --git a/meta-ivi-demo/recipes-core/base-files/base-files_%.bbappend b/meta-ivi-demo/recipes-core/base-files/base-files_%.bbappend
new file mode 100644
index 0000000..2c4e586
--- /dev/null
+++ b/meta-ivi-demo/recipes-core/base-files/base-files_%.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
+
+SRC_URI_append = " file://add_LD_PRELOAD.patch"