From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qc0-f173.google.com (mail-qc0-f173.google.com [209.85.216.173]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 722D1E00499 for ; Sun, 31 Mar 2013 13:18:24 -0700 (PDT) Received: by mail-qc0-f173.google.com with SMTP id b12so821079qca.32 for ; Sun, 31 Mar 2013 13:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=C7uHgqy5hfgw2/orGQn0lnDFcNQb7De2+kgO5fk7GgU=; b=nDo/YW6p0VmIca+StQ9eaMfFgTKicl+12TXymykLugK/YSJtytYsqnwdVogTVaStvq dIZ2Ckq75ZgUi71DDtPUROoSOJaOAeOBNKA/6qqpUiTPGvK6WH5TtuLomsvIcd5s6hMI dOU0j3Y5F908iNqAcJ1DJybsyANFlc+//44g26+ECGpfpBI6zIpspLqszjF1AUYbYZ+D gyTupIVnmwecUXY5XS27c0tm92EUjW6gB52c6mL38FL3cVNS0XyQeKtOGtoaLLsY1K3Z +qT3dw1yHm9ndYaXtQVHbkAxlYEYCNOxorepM57PmwD1AM7Aj2p4V+Vb0WuUpcGf6DBf DSaw== X-Received: by 10.224.186.211 with SMTP id ct19mr10759606qab.58.1364761103660; Sun, 31 Mar 2013 13:18:23 -0700 (PDT) Received: from goober.local ([75.76.228.60]) by mx.google.com with ESMTPS id az3sm16996438qeb.7.2013.03.31.13.18.22 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 31 Mar 2013 13:18:23 -0700 (PDT) Message-ID: <51589A0E.4010708@gmail.com> Date: Sun, 31 Mar 2013 15:18:22 -0500 From: John Weber User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org References: <1364045994-19617-1-git-send-email-otavio@ossystems.com.br> <1364045994-19617-9-git-send-email-otavio@ossystems.com.br> <5158747C.10806@gmail.com> In-Reply-To: <5158747C.10806@gmail.com> Subject: Re: [meta-fsl-arm][PATCH 8/8] gpu-viv-bin-mx6q: Respect X11, DirectFB, FrameBuffer distro features X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Mar 2013 20:18:24 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I'm sure this isn't the right solution, but to narrow down the error, I've confirmed that changing the following line in meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_1.1.0.bb that the build of fsl-image-test completes. # FIXME: 1.1.0 BSP release uses DirectFB 1.4 and Yocto has 1.6 so # disable it for now - USE_DFB = "no" + USE_DFB = "yes" On 3/31/13 12:38 PM, John Weber wrote: > Otavio, > > Should this change cause an error when building fsl-image-test? > > I'm getting the following error: > > | Computing transaction...error: Can't install > gpu-viv-bin-mx6q-1:1.1.0-r5.0@wandboard_dual: no package provides libgal-fb-mx6 > >= 12.09.01 > | > | Saving cache... > | > | ERROR: Function failed: do_rootfs (see > /mnt/YOCTOFSL/fsl-community-bsp/build/tmp/work/wandboard_dual-poky-linux-gnueabi/fsl-image-test/1.0-r0/temp/log.do_rootfs.12739 > for further information) > ERROR: Task 7 > (/mnt/YOCTOFSL/fsl-community-bsp/sources/meta-fsl-demos/recipes-fsl/images/fsl-image-test.bb, > do_rootfs) failed with exit code '1' > > Thanks, > John > > On 3/23/13 8:39 AM, Otavio Salvador wrote: >> As we cannot allow concurrent build of applications targetting >> different backends we use the distro features to package the need >> libraries for the backend. Currently it does: >> >> X11 support, if 'x11' feature is enabled >> DirectFB support, if 'x11' is not enabled AND 'directfb is enabled >> FrameBuffer, fallback >> >> As 1.1.0 version of the Vivante libraries are build against DirectFB >> 1.4 we cannot support it for now, so we explicitly disable it for this >> version so it is easy to add it back when new version, supporting >> newer DirectFB, is released. >> >> Change-Id: Ia8973b8107155b8a5f7fadc50d2290c1d5f28363 >> Signed-off-by: Otavio Salvador >> --- >> .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | 25 ++++++++++++++-------- >> .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_1.1.0.bb | 4 ++++ >> 2 files changed, 20 insertions(+), 9 deletions(-) >> >> diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc >> b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc >> index ce23f2e..e8e491e 100644 >> --- a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc >> +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc >> @@ -41,8 +41,8 @@ PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \ >> ${@base_contains("DISTRO_FEATURES", "directfb", "${GPU_DFBLIBS}", "", d)} \ >> " >> >> -KEEP_XLIBS = "${@base_contains("DISTRO_FEATURES", "x11", "yes", "no", d)}" >> -KEEP_DFBLIBS = "${@base_contains("DISTRO_FEATURES", "directfb", "yes", "no", >> d)}" >> +USE_X11 = "${@base_contains("DISTRO_FEATURES", "x11", "yes", "no", d)}" >> +USE_DFB = "${@base_contains("DISTRO_FEATURES", "directfb", "yes", "no", d)}" >> >> # Inhibit warnings about files being stripped. >> INHIBIT_PACKAGE_DEBUG_SPLIT = "1" >> @@ -69,19 +69,26 @@ do_install () { >> rm -r ${D}${includedir}/GL >> cp -axr ${S}/opt ${D} >> >> - if [ "${KEEP_XLIBS}" = "no" ]; then >> - rm ${D}${libdir}/*-x11.so >> - fi >> - if [ "${KEEP_DFBLIBS}" = "no" ]; then >> - rm ${D}${libdir}/*-dfb.so >> - fi >> - >> # FIXME: Drop default library as we need to explicit link to one >> # of supported backends >> rm ${D}${libdir}/libEGL.so \ >> ${D}${libdir}/libGAL.so \ >> ${D}${libdir}/libVIVANTE.so >> >> + if [ "${USE_X11}" = "yes" ]; then >> + find ${D}${libdir} -name '*-dfb.so' -exec rm '{}' ';' >> + find ${D}${libdir} -name '*-fb.so' -exec rm '{}' ';' >> + else >> + if [ "${USE_DFB}" = "yes" ]; then >> + find ${D}${libdir} -name '*-x11.so' -exec rm '{}' ';' >> + find ${D}${libdir} -name '*-fb.so' -exec rm '{}' ';' >> + else >> + # Regular framebuffer >> + find ${D}${libdir} -name '*-x11.so' -exec rm '{}' ';' >> + find ${D}${libdir} -name '*-dfb.so' -exec rm '{}' ';' >> + fi >> + fi >> + >> find ${D}${libdir} -type f -exec chmod 644 {} \; >> find ${D}${includedir} -type f -exec chmod 644 {} \; >> } >> diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_1.1.0.bb >> b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_1.1.0.bb >> index 3de9555..994c11c 100644 >> --- a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_1.1.0.bb >> +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_1.1.0.bb >> @@ -8,3 +8,7 @@ include gpu-viv-bin-mx6q.inc >> >> SRC_URI[md5sum] = "60f4ba65f557fc63fde6dacfeef205a8" >> SRC_URI[sha256sum] = >> "4238b72a6dad2d075d159bb1e86fb68bbed7c27894ce82c546a8e7c58ae5d683" >> + >> +# FIXME: 1.1.0 BSP release uses DirectFB 1.4 and Yocto has 1.6 so >> +# disable it for now >> +USE_DFB = "no" >>