[meta-freescale] Qt build in fsl yocto (dora) not making use of environment variables

Otavio Salvador otavio at ossystems.com.br
Thu Aug 14 06:02:38 PDT 2014


Hello Stephen,

On Wed, Aug 13, 2014 at 12:10 PM, Stephen Munnings
<Stephen.Munnings at nuvation.com> wrote:
>>Why are the environment variables not being used?
>
> As a follow up to this...
> The environment variables are available to the recipe that builds this app since the recipe line:
>     echo "Environment vars" ${GDBVERSIONMAJOR} ${GDBVERSIONMINOR} ${GDBVERSIONBUILD} "End env vars"
> produces the expected results in the log.
> This line is in  a custom task inserted after do_patch and before do_compile.
> The qt application build is taken care of (automatically) by having these lines in the recipe:
> inherit qmake5
> require recipes-qt/qt5/qt5.inc
>
> So the question is "why are these environment variables are available to the recipe, but not to the qmake or make steps?"

For it  to be exposed you need to pass it to the build.

In the recipe please try:

do_configure_prepend() {
    export GDBVERSIONMAJOR=${GDBVERSIONMAJOR}
    ...
}

> I assume from the lack of response that one of the following conditions exists:
> 1.  The answer is blindingly obvious to everyone but me (I am experiencing a "brain fart")
> 2.  Nobody else has tried something like this, and thus has no experience to share.
> 3.  Nobody has a clue what is happening (maybe because I did not give enough information) and therefore has no response.
> 4. The situation seems so ludicrous as to be nigh impossible, so nobody has any helpful advice to share.

5. This is a community project and people reply when they have free time

...

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the meta-freescale mailing list