[yocto] Problem with exporting variable in bbappend file

Paul Eggleton paul.eggleton at linux.intel.com
Mon Sep 12 00:34:47 PDT 2016


A couple of things:

1) If you're not already, use bitbake -e <recipename> and not just bitbake -e

2) I'd also recommend not piping through grep - pipe through "less" instead 
and search for the variable with / - this means you can see the history of how 
the variable's value got set.

Cheers,
Paul

On Mon, 12 Sep 2016 04:13:09 Gujulan Elango, Hari Prasath wrote:
> Hi Raj
> 
> Thanks for your reply. I tried bitbake-layers show-appends. I could see my
> bbappend file. But when I tried to grep the environment variable I am
> trying to set using bitbake -e, I am not able to see any output. Is there
> any way to confirm that the environment variable is set to the value I am
> trying to set ?
> 
> Regards,
> Hari Prasath
> 
> From: Khem Raj [mailto:raj.khem at gmail.com]
> Sent: Tuesday, September 06, 2016 11:49 PM
> To: Gujulan Elango, Hari Prasath (H.)
> Cc: yocto at yoctoproject.org
> Subject: Re: [yocto] Problem with exporting variable in bbappend file
> 
> 
> On Aug 30, 2016, at 5:30 AM, Gujulan Elango, Hari Prasath (H.)
> <hgujulan at visteon.com> wrote:
> 
> Hello all,
> 
> We are working on a platform based on Renesas processor. The BSP provided by
> them has arm-trusted-firmware. Now in order to enable all the 8 cores, they
> have suggested to add a environment variable in the
> arm-trusted-firmware_git.bb file in their BSP layer as below.
> 
> export PSCI_DISABLE_BIGLITTLE_IN_CA57BOOT="0"
> 
> We would prefer to make this change in our custom layer by creating a
> .bbappend file. We added the change in bbappend file, recompiled it and
> tested, but couldn't get the expected results. When I do the same change in
> the .bb file itself in their BSP layer, I am able to see the expected
> result.
> 
> Is it okay to just add the export as mentioned above in the .bbappend file ?
> Am I missing something else ?
> 
> ensure that your bbappend is actually applying to the final parsed recipe.
> You can use bitbake-layers show-appends to ensure that or simply bitbake -e
> and grep for this change
> 
> 
> 
> Thanks & Regards,
> Hari Prasath
> -- 
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list