summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc')
-rw-r--r--dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc28
1 files changed, 28 insertions, 0 deletions
diff --git a/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc b/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc
new file mode 100644
index 00000000..0efb5645
--- /dev/null
+++ b/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc
@@ -0,0 +1,28 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/qt4:"
2
3python __anonymous () {
4 families = ['mx6']
5 cur_families = (d.getVar('SOC_FAMILY', True) or '').split(':')
6 if any(map(lambda x: x in cur_families,
7 families)):
8 d.appendVarFlag('do_configure', 'depends', ' virtual/kernel:do_shared_workdir')
9}
10
11SRC_URI_append_mx6 += " \
12 file://0001-Add-support-for-i.MX-codecs-to-phonon.patch \
13 file://0002-i.MX-video-renderer-Allow-v4l-device-from-environmen.patch \
14 file://0003-i.MX6-force-egl-visual-ID-33.patch \
15"
16
17DEPENDS_append_mx6 = " virtual/kernel virtual/libgles2"
18QT_GLFLAGS_mx6 = "-opengl es2 -openvg"
19QT_CONFIG_FLAGS_append_mx6 = " -I${STAGING_KERNEL_DIR}/include/uapi \
20 -I${STAGING_KERNEL_DIR}/include/ \
21 -DLINUX=1 -DEGL_API_FB=1 \
22 -DQT_QPA_EXPERIMENTAL_TOUCHEVENT=1"
23
24# The QT_CONFIG_FLAGS can pollute *.la files with -Dxxx
25do_compile_append_mx6 () {
26 find lib -name "*.la" | xargs -n1 sed -i 's/-D.*=1//g'
27}
28