* [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support
@ 2013-05-28 0:02 Eric Bénard
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 2/4] amd-gpu-bin-mx51: new recipe Eric Bénard
` (4 more replies)
0 siblings, 5 replies; 15+ messages in thread
From: Eric Bénard @ 2013-05-28 0:02 UTC (permalink / raw)
To: meta-freescale
- this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
- tested on i.MX51, i.MX53 and i.MX6Q
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
conf/layer.conf | 2 +
recipes-qt/qt5/qtbase/mx5/qeglfshooks_imx5.cpp | 105 ++++++++++++++++++++++++
recipes-qt/qt5/qtbase_5.0.2.bbappend | 68 +++++++++++++++
3 files changed, 175 insertions(+)
create mode 100644 recipes-qt/qt5/qtbase/mx5/qeglfshooks_imx5.cpp
create mode 100644 recipes-qt/qt5/qtbase_5.0.2.bbappend
diff --git a/conf/layer.conf b/conf/layer.conf
index c4b9cd1..2bdff7c 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -4,6 +4,8 @@ BBPATH .= ":${LAYERDIR}"
# We have a packages directory, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"
+BBMASK_append = "${@base_contains('BBFILE_COLLECTIONS', 'qt5-layer', '' ,\
+ ' meta-fsl-arm/recipes-qt/qt5/*.bb meta-fsl-arm/recipes-qt/qt5/*.bbappend', d)}"
BBFILE_COLLECTIONS += "fsl-arm"
BBFILE_PATTERN_fsl-arm := "^${LAYERDIR}/"
diff --git a/recipes-qt/qt5/qtbase/mx5/qeglfshooks_imx5.cpp b/recipes-qt/qt5/qtbase/mx5/qeglfshooks_imx5.cpp
new file mode 100644
index 0000000..43e6d8d
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/mx5/qeglfshooks_imx5.cpp
@@ -0,0 +1,105 @@
+/****************************************************************************
+**
+** hacked by Eric Bénard - Eukréa Electromatique
+** inspired from https://community.freescale.com/docs/DOC-94123
+** and from fbset.c http://users.telenet.be/geertu/Linux/fbdev/
+**
+** based on qeglfshooks_imx6.cpp which is :
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+#include <fcntl.h> /* For O_RDWR */
+#include <unistd.h> /* For open(), creat() */
+#include "qeglfshooks.h"
+#include <EGL/egl.h>
+#include <linux/fb.h>
+#include <sys/ioctl.h>
+
+QT_BEGIN_NAMESPACE
+
+class QEglFSImx5Hooks : public QEglFSHooks
+{
+public:
+ QEglFSImx5Hooks();
+ virtual QSize screenSize() const;
+ virtual EGLNativeWindowType createNativeWindow(const QSize &size, const QSurfaceFormat &format);
+ virtual void destroyNativeWindow(EGLNativeWindowType window);
+
+private:
+ QSize mScreenSize;
+ EGLNativeDisplayType mNativeDisplay;
+};
+
+
+QEglFSImx5Hooks::QEglFSImx5Hooks()
+{
+ int width, height;
+ /* code taken from fbset.c */
+ int fh;
+ struct fb_var_screeninfo var;
+ fh = open("/dev/fb0", O_RDONLY);
+ ioctl(fh, FBIOGET_VSCREENINFO, &var);
+ mScreenSize.setHeight(var.yres);
+ mScreenSize.setWidth(var.xres);
+ close(fh);
+ mNativeDisplay = EGL_DEFAULT_DISPLAY;
+}
+
+QSize QEglFSImx5Hooks::screenSize() const
+{
+ return mScreenSize;
+}
+
+EGLNativeWindowType QEglFSImx5Hooks::createNativeWindow(const QSize &size, const QSurfaceFormat &format)
+{
+ Q_UNUSED(format);
+
+ EGLNativeWindowType eglWindow = open("/dev/fb0", O_RDWR);
+ return eglWindow;
+}
+
+
+void QEglFSImx5Hooks::destroyNativeWindow(EGLNativeWindowType window)
+{
+ close(window);
+}
+
+QEglFSImx5Hooks eglFSImx5Hooks;
+QEglFSHooks *platformHooks = &eglFSImx5Hooks;
+
+QT_END_NAMESPACE
diff --git a/recipes-qt/qt5/qtbase_5.0.2.bbappend b/recipes-qt/qt5/qtbase_5.0.2.bbappend
new file mode 100644
index 0000000..00a8819
--- /dev/null
+++ b/recipes-qt/qt5/qtbase_5.0.2.bbappend
@@ -0,0 +1,68 @@
+# Copyright (C) 2013 Eric Bénard - Eukréa Electromatique
+
+GL_DEPENDS_mx6 = "virtual/libgles2 virtual/egl"
+QT_GLFLAGS_mx6 = "-opengl es2 -eglfs"
+QT_EXAMPLES_mx6 = "-make examples"
+QT_DEMOS_mx6 = "-make demos"
+
+GL_DEPENDS_mx5 = "virtual/libgles2 virtual/egl"
+QT_GLFLAGS_mx5 = "-opengl es2 -eglfs"
+QT_EXAMPLES_mx5 = "-make examples"
+QT_DEMOS_mx5 = "-make demos"
+
+TSLIB_DEPENDS_mx6 = "tslib"
+QT_TSLIB_mx6 = "-tslib"
+
+TSLIB_DEPENDS_mx5 = "tslib"
+QT_TSLIB_mx5 = "-tslib"
+
+PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
+PACKAGE_ARCH_mx5 = "${MACHINE_ARCH}"
+
+FILESEXTRAPATHS_prepend_mx5 := "${THISDIR}/${PN}:"
+SRC_URI_append_mx5 += " \
+ file://qeglfshooks_imx5.cpp \
+ "
+
+do_configure_prepend_mx6() {
+# adapt qmake.conf to our needs
+sed -i 's!load(qt_config)!!' ${S}/mkspecs/linux-oe-g++/qmake.conf
+cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
+EGLFS_PLATFORM_HOOKS_SOURCES = \$\$PWD/qeglfshooks_imx6.cpp
+IMX6_CFLAGS = -DLINUX=1 -DEGL_API_FB=1
+QMAKE_LIBS_EGL += -lEGL
+QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
+QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL
+QMAKE_CFLAGS_RELEASE += \$\$IMX6_CFLAGS
+QMAKE_CXXFLAGS_RELEASE += \$\$IMX6_CFLAGS
+QMAKE_CFLAGS_DEBUG += \$\$IMX6_CFLAGS
+QMAKE_CXXFLAGS_DEBUG += \$\$IMX6_CFLAGS
+QMAKE_CFLAGS_EGL += \$\$IMX6_CFLAGS
+load(qt_config)
+
+EOF
+
+# copy the hook in the mkspecs directory OE is using
+cp ${S}/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp ${S}/mkspecs/linux-oe-g++/
+}
+
+do_configure_prepend_mx5() {
+# adapt qmake.conf to our needs
+sed -i 's!load(qt_config)!!' ${S}/mkspecs/linux-oe-g++/qmake.conf
+cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
+EGLFS_PLATFORM_HOOKS_SOURCES = \$\$PWD/qeglfshooks_imx5.cpp
+IMX5_CFLAGS = -D_LINUX
+QMAKE_LIBS_EGL += -lEGL
+QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL
+QMAKE_LIBS_OPENVG += -lOpenVG -lEGL
+QMAKE_CFLAGS_RELEASE += \$\$IMX5_CFLAGS
+QMAKE_CXXFLAGS_RELEASE += \$\$IMX5_CFLAGS
+QMAKE_CFLAGS_DEBUG += \$\$IMX5_CFLAGS
+QMAKE_CXXFLAGS_DEBUG += \$\$IMX5_CFLAGS
+QMAKE_CFLAGS_EGL += \$\$IMX5_CFLAGS
+load(qt_config)
+
+EOF
+
+cp ${WORKDIR}/qeglfshooks_imx5.cpp ${S}/mkspecs/linux-oe-g++/
+}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [meta-fsl-arm][PATCH RFC 2/4] amd-gpu-bin-mx51: new recipe
2013-05-28 0:02 [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support Eric Bénard
@ 2013-05-28 0:02 ` Eric Bénard
2013-05-28 13:11 ` Otavio Salvador
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 3/4] amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES Eric Bénard
` (3 subsequent siblings)
4 siblings, 1 reply; 15+ messages in thread
From: Eric Bénard @ 2013-05-28 0:02 UTC (permalink / raw)
To: meta-freescale
this provides the GPU libraries for framebuffer
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
.../amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb | 89 ++++++++++++++++++++
.../fix-linux-build-check.patch | 0
2 files changed, 89 insertions(+)
create mode 100644 recipes-graphics/amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb
rename recipes-graphics/amd-gpu-x11-bin/{amd-gpu-x11-bin-mx51 => files}/fix-linux-build-check.patch (100%)
diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb
new file mode 100644
index 0000000..c207405
--- /dev/null
+++ b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb
@@ -0,0 +1,89 @@
+# Copyright (C) 2011, 2012 Freescale
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+DESCRIPTION = "GPU driver and apps for frambuffer on mx51"
+LICENSE = "Proprietary"
+SECTION = "libs"
+PR = "r0"
+
+RCONFLICTS_${PN} = "amd-gpu-x11-bin-mx51"
+
+# FIXME: Replace for correct AMD license
+LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802"
+
+PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2"
+
+SRC_URI = "${FSL_MIRROR}/amd-gpu-bin-mx51-${PV}.bin;fsl-eula=true \
+ file://fix-linux-build-check.patch"
+SRC_URI[md5sum] = "9f9b5f67b595721a08793aae8bd8fc46"
+SRC_URI[sha256sum] = "f0db68a764b5fb199729e7435f606b8d12b61ca97990336c647b7e81f4a584d9"
+
+inherit fsl-eula-unpack
+
+# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
+# the source we cannot fix it. Disable the insane check for now.
+python populate_packages_prepend() {
+ for p in d.getVar('PACKAGES', True).split():
+ d.setVar("INSANE_SKIP_%s" % p, "ldflags")
+}
+
+do_install () {
+ install -d ${D}${libdir}
+ install -d ${D}${bindir}
+ install -d ${D}${includedir}
+
+ cp -axr ${S}/usr/bin/* ${D}${bindir}
+ cp -axf ${S}/usr/lib/* ${D}${libdir}
+ cp -axr ${S}/usr/include/* ${D}${includedir}
+
+ find ${D}${bindir} -type f -exec chmod 755 {} \;
+ find ${D}${libdir} -type f -exec chmod 644 {} \;
+ find ${D}${includedir} -type f -exec chmod 644 {} \;
+
+ # FIXME: Fix sonames of broken libraries
+ mv ${D}${libdir}/lib2dz160.so ${D}${libdir}/lib2dz160.so.0
+ mv ${D}${libdir}/lib2dz430.so ${D}${libdir}/lib2dz430.so.0
+
+ # FIXME: Remove unkown files
+ rm -r ${D}${libdir}/libcsi.a \
+ ${D}${libdir}/libres.a
+}
+
+PACKAGES =+ "libgsl-fsl-mx51 libgsl-fsl-mx51-dev libgsl-fsl-mx51-dbg \
+ libegl-mx51 libegl-mx51-dev libegl-mx51-dbg \
+ libgles-mx51 libgles-mx51-dev libgles-mx51-dbg \
+ libgles2-mx51 libgles2-mx51-dev libgles2-mx51-dbg \
+ libopenvg-mx51 libopenvg-mx51-dev libopenvg-mx51-dbg \
+ lib2dz160-mx51 lib2dz160-mx51-dbg \
+ lib2dz430-mx51 lib2dz430-mx51-dbg"
+
+FILES_${PN}-dbg = "${bindir}/.debug/*"
+
+FILES_libgsl-fsl-mx51 = "${libdir}/libgsl-fsl${SOLIBS}"
+FILES_libgsl-fsl-mx51-dev = "${libdir}/libgsl-fsl${SOLIBSDEV}"
+FILES_libgsl-fsl-mx51-dbg = "${libdir}/.debug/libgsl-fsl${SOLIBS}"
+
+FILES_libegl-mx51 = "${libdir}/libEGL${SOLIBS}"
+FILES_libegl-mx51-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/libEGL${SOLIBSDEV}"
+FILES_libegl-mx51-dbg = "${libdir}/.debug/libEGL${SOLIBS}"
+
+FILES_libgles-mx51 = "${libdir}/libGLESv1*${SOLIBS}"
+FILES_libgles-mx51-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBSDEV}"
+FILES_libgles-mx51-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS}"
+
+FILES_libgles2-mx51 = "${libdir}/libGLESv2${SOLIBS}"
+FILES_libgles2-mx51-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}"
+FILES_libgles2-mx51-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}"
+
+FILES_libopenvg-mx51 = "${libdir}/libOpenVG${SOLIBS}"
+FILES_libopenvg-mx51-dev = "${includedir}/VG ${libdir}/libOpenVG${SOLIBSDEV}"
+FILES_libopenvg-mx51-dbg = "${libdir}/.debug/libOpenVG${SOLIBS}"
+
+FILES_lib2dz160-mx51 = "${libdir}/lib2dz160${SOLIBS}"
+FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}"
+
+FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}"
+FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}"
+
+COMPATIBLE_MACHINE = "(mx5)"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51/fix-linux-build-check.patch b/recipes-graphics/amd-gpu-x11-bin/files/fix-linux-build-check.patch
similarity index 100%
rename from recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51/fix-linux-build-check.patch
rename to recipes-graphics/amd-gpu-x11-bin/files/fix-linux-build-check.patch
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [meta-fsl-arm][PATCH RFC 3/4] amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES
2013-05-28 0:02 [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support Eric Bénard
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 2/4] amd-gpu-bin-mx51: new recipe Eric Bénard
@ 2013-05-28 0:02 ` Eric Bénard
2013-05-28 14:30 ` Otavio Salvador
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 4/4] amd-gpu*: factorize the recipes Eric Bénard
` (2 subsequent siblings)
4 siblings, 1 reply; 15+ messages in thread
From: Eric Bénard @ 2013-05-28 0:02 UTC (permalink / raw)
To: meta-freescale
this prevent warnings and parse errors
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
.../amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb
index 2dee47a..e50d691 100644
--- a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb
+++ b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb
@@ -6,9 +6,11 @@ LICENSE = "Proprietary"
SECTION = "libs"
PR = "r12"
+RCONFLICTS_${PN} = "amd-gpu-bin-mx51"
+
# FIXME: Replace for correct AMD license
LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802"
-DEPENDS = "virtual/libx11 libxrender"
+DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxrender', '', d)}"
PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2"
@@ -84,5 +86,5 @@ FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}"
FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}"
FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}"
-COMPATIBLE_MACHINE = "(mx5)"
+COMPATIBLE_MACHINE = "{@base_contains('DISTRO_FEATURES', 'x11', (mx5), '', d)}"
PACKAGE_ARCH = "${MACHINE_ARCH}"
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [meta-fsl-arm][PATCH RFC 4/4] amd-gpu*: factorize the recipes
2013-05-28 0:02 [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support Eric Bénard
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 2/4] amd-gpu-bin-mx51: new recipe Eric Bénard
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 3/4] amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES Eric Bénard
@ 2013-05-28 0:02 ` Eric Bénard
2013-05-28 13:16 ` Otavio Salvador
2013-05-28 0:08 ` [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support Eric Bénard
2013-05-28 13:29 ` Otavio Salvador
4 siblings, 1 reply; 15+ messages in thread
From: Eric Bénard @ 2013-05-28 0:02 UTC (permalink / raw)
To: meta-freescale
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
.../amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb | 78 +------------------
recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc | 82 ++++++++++++++++++++
.../amd-gpu-x11-bin-mx51_11.09.01.bb | 76 +-----------------
3 files changed, 85 insertions(+), 151 deletions(-)
create mode 100644 recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb
index c207405..442bacc 100644
--- a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb
+++ b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb
@@ -2,88 +2,14 @@
# Released under the MIT license (see COPYING.MIT for the terms)
DESCRIPTION = "GPU driver and apps for frambuffer on mx51"
-LICENSE = "Proprietary"
-SECTION = "libs"
+
PR = "r0"
RCONFLICTS_${PN} = "amd-gpu-x11-bin-mx51"
-# FIXME: Replace for correct AMD license
-LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802"
-
-PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2"
+include amd-gpu-mx51.inc
-SRC_URI = "${FSL_MIRROR}/amd-gpu-bin-mx51-${PV}.bin;fsl-eula=true \
- file://fix-linux-build-check.patch"
SRC_URI[md5sum] = "9f9b5f67b595721a08793aae8bd8fc46"
SRC_URI[sha256sum] = "f0db68a764b5fb199729e7435f606b8d12b61ca97990336c647b7e81f4a584d9"
-inherit fsl-eula-unpack
-
-# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
-# the source we cannot fix it. Disable the insane check for now.
-python populate_packages_prepend() {
- for p in d.getVar('PACKAGES', True).split():
- d.setVar("INSANE_SKIP_%s" % p, "ldflags")
-}
-
-do_install () {
- install -d ${D}${libdir}
- install -d ${D}${bindir}
- install -d ${D}${includedir}
-
- cp -axr ${S}/usr/bin/* ${D}${bindir}
- cp -axf ${S}/usr/lib/* ${D}${libdir}
- cp -axr ${S}/usr/include/* ${D}${includedir}
-
- find ${D}${bindir} -type f -exec chmod 755 {} \;
- find ${D}${libdir} -type f -exec chmod 644 {} \;
- find ${D}${includedir} -type f -exec chmod 644 {} \;
-
- # FIXME: Fix sonames of broken libraries
- mv ${D}${libdir}/lib2dz160.so ${D}${libdir}/lib2dz160.so.0
- mv ${D}${libdir}/lib2dz430.so ${D}${libdir}/lib2dz430.so.0
-
- # FIXME: Remove unkown files
- rm -r ${D}${libdir}/libcsi.a \
- ${D}${libdir}/libres.a
-}
-
-PACKAGES =+ "libgsl-fsl-mx51 libgsl-fsl-mx51-dev libgsl-fsl-mx51-dbg \
- libegl-mx51 libegl-mx51-dev libegl-mx51-dbg \
- libgles-mx51 libgles-mx51-dev libgles-mx51-dbg \
- libgles2-mx51 libgles2-mx51-dev libgles2-mx51-dbg \
- libopenvg-mx51 libopenvg-mx51-dev libopenvg-mx51-dbg \
- lib2dz160-mx51 lib2dz160-mx51-dbg \
- lib2dz430-mx51 lib2dz430-mx51-dbg"
-
-FILES_${PN}-dbg = "${bindir}/.debug/*"
-
-FILES_libgsl-fsl-mx51 = "${libdir}/libgsl-fsl${SOLIBS}"
-FILES_libgsl-fsl-mx51-dev = "${libdir}/libgsl-fsl${SOLIBSDEV}"
-FILES_libgsl-fsl-mx51-dbg = "${libdir}/.debug/libgsl-fsl${SOLIBS}"
-
-FILES_libegl-mx51 = "${libdir}/libEGL${SOLIBS}"
-FILES_libegl-mx51-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/libEGL${SOLIBSDEV}"
-FILES_libegl-mx51-dbg = "${libdir}/.debug/libEGL${SOLIBS}"
-
-FILES_libgles-mx51 = "${libdir}/libGLESv1*${SOLIBS}"
-FILES_libgles-mx51-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBSDEV}"
-FILES_libgles-mx51-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS}"
-
-FILES_libgles2-mx51 = "${libdir}/libGLESv2${SOLIBS}"
-FILES_libgles2-mx51-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}"
-FILES_libgles2-mx51-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}"
-
-FILES_libopenvg-mx51 = "${libdir}/libOpenVG${SOLIBS}"
-FILES_libopenvg-mx51-dev = "${includedir}/VG ${libdir}/libOpenVG${SOLIBSDEV}"
-FILES_libopenvg-mx51-dbg = "${libdir}/.debug/libOpenVG${SOLIBS}"
-
-FILES_lib2dz160-mx51 = "${libdir}/lib2dz160${SOLIBS}"
-FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}"
-
-FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}"
-FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}"
-
COMPATIBLE_MACHINE = "(mx5)"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
new file mode 100644
index 0000000..b081695
--- /dev/null
+++ b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
@@ -0,0 +1,82 @@
+# Copyright (C) 2011, 2012 Freescale
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+LICENSE = "Proprietary"
+SECTION = "libs"
+
+# FIXME: Replace for correct AMD license
+LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802"
+
+PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2"
+
+SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
+ file://fix-linux-build-check.patch"
+
+inherit fsl-eula-unpack
+
+# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
+# the source we cannot fix it. Disable the insane check for now.
+python populate_packages_prepend() {
+ for p in d.getVar('PACKAGES', True).split():
+ d.setVar("INSANE_SKIP_%s" % p, "ldflags")
+}
+
+do_install () {
+ install -d ${D}${libdir}
+ install -d ${D}${bindir}
+ install -d ${D}${includedir}
+
+ cp -axr ${S}/usr/bin/* ${D}${bindir}
+ cp -axf ${S}/usr/lib/* ${D}${libdir}
+ cp -axr ${S}/usr/include/* ${D}${includedir}
+
+ find ${D}${bindir} -type f -exec chmod 755 {} \;
+ find ${D}${libdir} -type f -exec chmod 644 {} \;
+ find ${D}${includedir} -type f -exec chmod 644 {} \;
+
+ # FIXME: Fix sonames of broken libraries
+ mv ${D}${libdir}/lib2dz160.so ${D}${libdir}/lib2dz160.so.0
+ mv ${D}${libdir}/lib2dz430.so ${D}${libdir}/lib2dz430.so.0
+
+ # FIXME: Remove unkown files
+ rm -r ${D}${libdir}/libcsi.a \
+ ${D}${libdir}/libres.a
+}
+
+PACKAGES =+ "libgsl-fsl-mx51 libgsl-fsl-mx51-dev libgsl-fsl-mx51-dbg \
+ libegl-mx51 libegl-mx51-dev libegl-mx51-dbg \
+ libgles-mx51 libgles-mx51-dev libgles-mx51-dbg \
+ libgles2-mx51 libgles2-mx51-dev libgles2-mx51-dbg \
+ libopenvg-mx51 libopenvg-mx51-dev libopenvg-mx51-dbg \
+ lib2dz160-mx51 lib2dz160-mx51-dbg \
+ lib2dz430-mx51 lib2dz430-mx51-dbg"
+
+FILES_${PN}-dbg = "${bindir}/.debug/*"
+
+FILES_libgsl-fsl-mx51 = "${libdir}/libgsl-fsl${SOLIBS}"
+FILES_libgsl-fsl-mx51-dev = "${libdir}/libgsl-fsl${SOLIBSDEV}"
+FILES_libgsl-fsl-mx51-dbg = "${libdir}/.debug/libgsl-fsl${SOLIBS}"
+
+FILES_libegl-mx51 = "${libdir}/libEGL${SOLIBS}"
+FILES_libegl-mx51-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/libEGL${SOLIBSDEV}"
+FILES_libegl-mx51-dbg = "${libdir}/.debug/libEGL${SOLIBS}"
+
+FILES_libgles-mx51 = "${libdir}/libGLESv1*${SOLIBS}"
+FILES_libgles-mx51-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBSDEV}"
+FILES_libgles-mx51-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS}"
+
+FILES_libgles2-mx51 = "${libdir}/libGLESv2${SOLIBS}"
+FILES_libgles2-mx51-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}"
+FILES_libgles2-mx51-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}"
+
+FILES_libopenvg-mx51 = "${libdir}/libOpenVG${SOLIBS}"
+FILES_libopenvg-mx51-dev = "${includedir}/VG ${libdir}/libOpenVG${SOLIBSDEV}"
+FILES_libopenvg-mx51-dbg = "${libdir}/.debug/libOpenVG${SOLIBS}"
+
+FILES_lib2dz160-mx51 = "${libdir}/lib2dz160${SOLIBS}"
+FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}"
+
+FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}"
+FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb
index e50d691..e134882 100644
--- a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb
+++ b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb
@@ -2,89 +2,15 @@
# Released under the MIT license (see COPYING.MIT for the terms)
DESCRIPTION = "GPU driver and apps for x11 on mx51"
-LICENSE = "Proprietary"
-SECTION = "libs"
PR = "r12"
RCONFLICTS_${PN} = "amd-gpu-bin-mx51"
-# FIXME: Replace for correct AMD license
-LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802"
DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxrender', '', d)}"
-PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2"
+include amd-gpu-mx51.inc
-SRC_URI = "${FSL_MIRROR}/amd-gpu-x11-bin-mx51-${PV}.bin;fsl-eula=true \
- file://fix-linux-build-check.patch"
SRC_URI[md5sum] = "54391a4e670b597d06d01253fb217cad"
SRC_URI[sha256sum] = "c7a6fa03b7aa2a375556c59908876554ba720c1e744baba2debb84a408f790db"
-inherit fsl-eula-unpack
-
-# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
-# the source we cannot fix it. Disable the insane check for now.
-python populate_packages_prepend() {
- for p in d.getVar('PACKAGES', True).split():
- d.setVar("INSANE_SKIP_%s" % p, "ldflags")
-}
-
-do_install () {
- install -d ${D}${libdir}
- install -d ${D}${bindir}
- install -d ${D}${includedir}
-
- cp -axr ${S}/usr/bin/* ${D}${bindir}
- cp -axf ${S}/usr/lib/* ${D}${libdir}
- cp -axr ${S}/usr/include/* ${D}${includedir}
-
- find ${D}${bindir} -type f -exec chmod 755 {} \;
- find ${D}${libdir} -type f -exec chmod 644 {} \;
- find ${D}${includedir} -type f -exec chmod 644 {} \;
-
- # FIXME: Fix sonames of broken libraries
- mv ${D}${libdir}/lib2dz160.so ${D}${libdir}/lib2dz160.so.0
- mv ${D}${libdir}/lib2dz430.so ${D}${libdir}/lib2dz430.so.0
-
- # FIXME: Remove unkown files
- rm -r ${D}${libdir}/libcsi.a \
- ${D}${libdir}/libres.a
-}
-
-PACKAGES =+ "libgsl-fsl-mx51 libgsl-fsl-mx51-dev libgsl-fsl-mx51-dbg \
- libegl-mx51 libegl-mx51-dev libegl-mx51-dbg \
- libgles-mx51 libgles-mx51-dev libgles-mx51-dbg \
- libgles2-mx51 libgles2-mx51-dev libgles2-mx51-dbg \
- libopenvg-mx51 libopenvg-mx51-dev libopenvg-mx51-dbg \
- lib2dz160-mx51 lib2dz160-mx51-dbg \
- lib2dz430-mx51 lib2dz430-mx51-dbg"
-
-FILES_${PN}-dbg = "${bindir}/.debug/*"
-
-FILES_libgsl-fsl-mx51 = "${libdir}/libgsl-fsl${SOLIBS}"
-FILES_libgsl-fsl-mx51-dev = "${libdir}/libgsl-fsl${SOLIBSDEV}"
-FILES_libgsl-fsl-mx51-dbg = "${libdir}/.debug/libgsl-fsl${SOLIBS}"
-
-FILES_libegl-mx51 = "${libdir}/libEGL${SOLIBS}"
-FILES_libegl-mx51-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/libEGL${SOLIBSDEV}"
-FILES_libegl-mx51-dbg = "${libdir}/.debug/libEGL${SOLIBS}"
-
-FILES_libgles-mx51 = "${libdir}/libGLESv1*${SOLIBS}"
-FILES_libgles-mx51-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBSDEV}"
-FILES_libgles-mx51-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS}"
-
-FILES_libgles2-mx51 = "${libdir}/libGLESv2${SOLIBS}"
-FILES_libgles2-mx51-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}"
-FILES_libgles2-mx51-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}"
-
-FILES_libopenvg-mx51 = "${libdir}/libOpenVG${SOLIBS}"
-FILES_libopenvg-mx51-dev = "${includedir}/VG ${libdir}/libOpenVG${SOLIBSDEV}"
-FILES_libopenvg-mx51-dbg = "${libdir}/.debug/libOpenVG${SOLIBS}"
-
-FILES_lib2dz160-mx51 = "${libdir}/lib2dz160${SOLIBS}"
-FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}"
-
-FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}"
-FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}"
-
COMPATIBLE_MACHINE = "{@base_contains('DISTRO_FEATURES', 'x11', (mx5), '', d)}"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
--
1.7.10.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support
2013-05-28 0:02 [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support Eric Bénard
` (2 preceding siblings ...)
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 4/4] amd-gpu*: factorize the recipes Eric Bénard
@ 2013-05-28 0:08 ` Eric Bénard
2013-05-28 13:29 ` Otavio Salvador
4 siblings, 0 replies; 15+ messages in thread
From: Eric Bénard @ 2013-05-28 0:08 UTC (permalink / raw)
To: meta-freescale
Hi,
Le Tue, 28 May 2013 02:02:49 +0200,
Eric Bénard <eric@eukrea.com> a écrit :
> - this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
> - tested on i.MX51, i.MX53 and i.MX6Q
>
note that his patch was tested with the following in meta-qt5 :
cherry-pick e7a477a
apply the 8 patches on this serie :
http://lists.openembedded.org/pipermail/openembedded-devel/2013-May/090861.html
and set default to use version 5.0.2 (check
conf/distro/include/qt5-versions.inc or hack
recipes-qt/qt5/qt5-5.0.2.inc).
Only eglfs and minimalegl backend were tested (no X11 support was
tested at the moment).
Eric
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [meta-fsl-arm][PATCH RFC 2/4] amd-gpu-bin-mx51: new recipe
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 2/4] amd-gpu-bin-mx51: new recipe Eric Bénard
@ 2013-05-28 13:11 ` Otavio Salvador
0 siblings, 0 replies; 15+ messages in thread
From: Otavio Salvador @ 2013-05-28 13:11 UTC (permalink / raw)
To: Eric Bénard; +Cc: meta-freescale@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
On Mon, May 27, 2013 at 9:02 PM, Eric Bénard <eric@eukrea.com> wrote:
> this provides the GPU libraries for framebuffer
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>
>
Please move the common code to an amd-gpu-bin.inc file so we avoid this
amount of duplication.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
[-- Attachment #2: Type: text/html, Size: 993 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [meta-fsl-arm][PATCH RFC 4/4] amd-gpu*: factorize the recipes
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 4/4] amd-gpu*: factorize the recipes Eric Bénard
@ 2013-05-28 13:16 ` Otavio Salvador
0 siblings, 0 replies; 15+ messages in thread
From: Otavio Salvador @ 2013-05-28 13:16 UTC (permalink / raw)
To: Eric Bénard; +Cc: meta-freescale@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 435 bytes --]
On Mon, May 27, 2013 at 9:02 PM, Eric Bénard <eric@eukrea.com> wrote:
> Signed-off-by: Eric Bénard <eric@eukrea.com>
>
Please do this refactor before adding the amd-gpu-bin-mx51. No need to
duplicate it all and later refactor.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
[-- Attachment #2: Type: text/html, Size: 947 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support
2013-05-28 0:02 [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support Eric Bénard
` (3 preceding siblings ...)
2013-05-28 0:08 ` [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support Eric Bénard
@ 2013-05-28 13:29 ` Otavio Salvador
2013-05-28 13:38 ` Eric Bénard
2013-05-30 15:26 ` Chris Larson
4 siblings, 2 replies; 15+ messages in thread
From: Otavio Salvador @ 2013-05-28 13:29 UTC (permalink / raw)
To: Eric Bénard; +Cc: meta-freescale@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 544 bytes --]
On Mon, May 27, 2013 at 9:02 PM, Eric Bénard <eric@eukrea.com> wrote:
> - this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
> - tested on i.MX51, i.MX53 and i.MX6Q
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>
>
I like the idea of it dynamically extend the parsed recipes so users don't
need to handle it byhand.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
[-- Attachment #2: Type: text/html, Size: 1066 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support
2013-05-28 13:29 ` Otavio Salvador
@ 2013-05-28 13:38 ` Eric Bénard
2013-05-30 15:26 ` Chris Larson
1 sibling, 0 replies; 15+ messages in thread
From: Eric Bénard @ 2013-05-28 13:38 UTC (permalink / raw)
To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org
Le Tue, 28 May 2013 10:29:51 -0300,
Otavio Salvador <otavio@ossystems.com.br> a écrit :
> On Mon, May 27, 2013 at 9:02 PM, Eric Bénard <eric@eukrea.com> wrote:
>
> > - this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
> > - tested on i.MX51, i.MX53 and i.MX6Q
> >
> > Signed-off-by: Eric Bénard <eric@eukrea.com>
> >
>
> I like the idea of it dynamically extend the parsed recipes so users don't
> need to handle it byhand.
>
you can send yourself flowers as that's your idea ;-) That took me quite
some time to find the right way on how to make this idea real ;-)
Eric
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [meta-fsl-arm][PATCH RFC 3/4] amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 3/4] amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES Eric Bénard
@ 2013-05-28 14:30 ` Otavio Salvador
2013-05-28 14:34 ` Eric Bénard
0 siblings, 1 reply; 15+ messages in thread
From: Otavio Salvador @ 2013-05-28 14:30 UTC (permalink / raw)
To: Eric Bénard; +Cc: meta-freescale@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 839 bytes --]
On Mon, May 27, 2013 at 9:02 PM, Eric Bénard <eric@eukrea.com> wrote:
> this prevent warnings and parse errors
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>
>
-COMPATIBLE_MACHINE = "(mx5)"
+COMPATIBLE_MACHINE = "{@base_contains('DISTRO_FEATURES', 'x11', (mx5), '',
d)}"
Something like:
python __anonymous () {
distro_features = d.getVar('DISTRO_FEATURES', True).split()
if 'x11' not in distro_features:
raise bb.parse.SkipPackage('missing required "x11" distro feature')
}
could be used so I think you don't need to handle distro feature twice
(compat machine and depends).
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
[-- Attachment #2: Type: text/html, Size: 3176 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [meta-fsl-arm][PATCH RFC 3/4] amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES
2013-05-28 14:30 ` Otavio Salvador
@ 2013-05-28 14:34 ` Eric Bénard
0 siblings, 0 replies; 15+ messages in thread
From: Eric Bénard @ 2013-05-28 14:34 UTC (permalink / raw)
To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org
Le Tue, 28 May 2013 11:30:59 -0300,
Otavio Salvador <otavio@ossystems.com.br> a écrit :
> On Mon, May 27, 2013 at 9:02 PM, Eric Bénard <eric@eukrea.com> wrote:
>
> > this prevent warnings and parse errors
> >
> > Signed-off-by: Eric Bénard <eric@eukrea.com>
> >
>
> -COMPATIBLE_MACHINE = "(mx5)"
> +COMPATIBLE_MACHINE = "{@base_contains('DISTRO_FEATURES', 'x11', (mx5), '',
> d)}"
>
> Something like:
>
> python __anonymous () {
>
>
> distro_features = d.getVar('DISTRO_FEATURES', True).split()
>
>
> if 'x11' not in distro_features:
>
>
> raise bb.parse.SkipPackage('missing required "x11" distro feature')
>
>
> }
>
>
>
> could be used so I think you don't need to handle distro feature twice
> (compat machine and depends).
>
will try, in fact I think only COMPATIBLE_MACHINE is needed.
Eric
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support
2013-05-28 13:29 ` Otavio Salvador
2013-05-28 13:38 ` Eric Bénard
@ 2013-05-30 15:26 ` Chris Larson
2013-05-31 6:53 ` Erik Botö
2013-05-31 12:37 ` Otavio Salvador
1 sibling, 2 replies; 15+ messages in thread
From: Chris Larson @ 2013-05-30 15:26 UTC (permalink / raw)
To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 942 bytes --]
On Tue, May 28, 2013 at 6:29 AM, Otavio Salvador <otavio@ossystems.com.br>wrote:
> On Mon, May 27, 2013 at 9:02 PM, Eric Bénard <eric@eukrea.com> wrote:
>
>> - this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
>> - tested on i.MX51, i.MX53 and i.MX6Q
>>
>> Signed-off-by: Eric Bénard <eric@eukrea.com>
>>
>
> I like the idea of it dynamically extend the parsed recipes so users don't
> need to handle it byhand.
>
It is quite helpful for this sort of case, either a bsp layer appending to
optional layer content, or a common layer appending to bsp layer content,
we do something similar for the mentor layer —
http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/tree/conf/layer.conf#n9,
but this one doesn't hardcode a particular layer.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
[-- Attachment #2: Type: text/html, Size: 1801 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support
2013-05-30 15:26 ` Chris Larson
@ 2013-05-31 6:53 ` Erik Botö
2013-05-31 12:37 ` Otavio Salvador
1 sibling, 0 replies; 15+ messages in thread
From: Erik Botö @ 2013-05-31 6:53 UTC (permalink / raw)
To: Chris Larson; +Cc: meta-freescale@yoctoproject.org, Otavio Salvador
On Thu, May 30, 2013 at 5:26 PM, Chris Larson <clarson@kergoth.com> wrote:
>
> It is quite helpful for this sort of case, either a bsp layer appending to
> optional layer content, or a common layer appending to bsp layer content, we
> do something similar for the mentor layer —
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/tree/conf/layer.conf#n9,
> but this one doesn't hardcode a particular layer.
That's a really neat solution, thanks for the hint!
-- Erik
> --
> Christopher Larson
> clarson at kergoth dot com
> Founder - BitBake, OpenEmbedded, OpenZaurus
> Maintainer - Tslib
> Senior Software Engineer, Mentor Graphics
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support
2013-05-30 15:26 ` Chris Larson
2013-05-31 6:53 ` Erik Botö
@ 2013-05-31 12:37 ` Otavio Salvador
2013-05-31 13:27 ` Chris Larson
1 sibling, 1 reply; 15+ messages in thread
From: Otavio Salvador @ 2013-05-31 12:37 UTC (permalink / raw)
To: Chris Larson; +Cc: meta-freescale@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1159 bytes --]
On Thu, May 30, 2013 at 12:26 PM, Chris Larson <clarson@kergoth.com> wrote:
>
> On Tue, May 28, 2013 at 6:29 AM, Otavio Salvador <otavio@ossystems.com.br>wrote:
>
>> On Mon, May 27, 2013 at 9:02 PM, Eric Bénard <eric@eukrea.com> wrote:
>>
>>> - this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
>>> - tested on i.MX51, i.MX53 and i.MX6Q
>>>
>>> Signed-off-by: Eric Bénard <eric@eukrea.com>
>>>
>>
>> I like the idea of it dynamically extend the parsed recipes so users
>> don't need to handle it byhand.
>>
>
> It is quite helpful for this sort of case, either a bsp layer appending to
> optional layer content, or a common layer appending to bsp layer content,
> we do something similar for the mentor layer —
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/tree/conf/layer.conf#n9,
> but this one doesn't hardcode a particular layer.
>
So you have 'qt5' for it to be enabled when meta-qt5 is added, right?
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
[-- Attachment #2: Type: text/html, Size: 2473 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support
2013-05-31 12:37 ` Otavio Salvador
@ 2013-05-31 13:27 ` Chris Larson
0 siblings, 0 replies; 15+ messages in thread
From: Chris Larson @ 2013-05-31 13:27 UTC (permalink / raw)
To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1297 bytes --]
On Fri, May 31, 2013 at 5:37 AM, Otavio Salvador <otavio@ossystems.com.br>wrote:
> On Thu, May 30, 2013 at 12:26 PM, Chris Larson <clarson@kergoth.com>wrote:
>
>>
>> On Tue, May 28, 2013 at 6:29 AM, Otavio Salvador <otavio@ossystems.com.br
>> > wrote:
>>
>>> On Mon, May 27, 2013 at 9:02 PM, Eric Bénard <eric@eukrea.com> wrote:
>>>
>>>> - this allow to build qt5 with OpenGL ES support for i.MX5 and i.MX6
>>>> - tested on i.MX51, i.MX53 and i.MX6Q
>>>>
>>>> Signed-off-by: Eric Bénard <eric@eukrea.com>
>>>>
>>>
>>> I like the idea of it dynamically extend the parsed recipes so users
>>> don't need to handle it byhand.
>>>
>>
>> It is quite helpful for this sort of case, either a bsp layer appending
>> to optional layer content, or a common layer appending to bsp layer
>> content, we do something similar for the mentor layer —
>> http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/tree/conf/layer.conf#n9,
>> but this one doesn't hardcode a particular layer.
>>
>
> So you have 'qt5' for it to be enabled when meta-qt5 is added, right?
>
Yeah, that's the one downside to that generic approach, using the name from
BBFILE_COLLECTIONS directly also means we end up with directories like
'openembedded-layer' in our layer :)
--
Christopher Larson
[-- Attachment #2: Type: text/html, Size: 2683 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2013-05-31 13:27 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-28 0:02 [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support Eric Bénard
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 2/4] amd-gpu-bin-mx51: new recipe Eric Bénard
2013-05-28 13:11 ` Otavio Salvador
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 3/4] amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES Eric Bénard
2013-05-28 14:30 ` Otavio Salvador
2013-05-28 14:34 ` Eric Bénard
2013-05-28 0:02 ` [meta-fsl-arm][PATCH RFC 4/4] amd-gpu*: factorize the recipes Eric Bénard
2013-05-28 13:16 ` Otavio Salvador
2013-05-28 0:08 ` [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support Eric Bénard
2013-05-28 13:29 ` Otavio Salvador
2013-05-28 13:38 ` Eric Bénard
2013-05-30 15:26 ` Chris Larson
2013-05-31 6:53 ` Erik Botö
2013-05-31 12:37 ` Otavio Salvador
2013-05-31 13:27 ` Chris Larson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.