summaryrefslogtreecommitdiffstats
path: root/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2016-01-08 14:15:35 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2016-01-11 13:14:34 -0200
commit4b84798a7e263ba3a96cebad93a36f450394b7c0 (patch)
tree78e6c2c54c7b28cd096bc735b1f733a84d02af7d /qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc
parentff27354776e628a2fb80cbee2b8a43e46cc58c34 (diff)
downloadmeta-fsl-arm-4b84798a7e263ba3a96cebad93a36f450394b7c0.tar.gz
qt4: Move BSP related bbappend files to dynamic layer
The Qt4 recipes are now in a specific layer, meta-qt4, so we cannot append those recipes if the layer is not included. This moves the bbappend files to the 'qt4-layer' collection, enabling it in case the collection is available. Fixes [YOCTO: #8898] Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc')
-rw-r--r--qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc28
1 files changed, 28 insertions, 0 deletions
diff --git a/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc b/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc
new file mode 100644
index 0000000..0efb564
--- /dev/null
+++ b/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