All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with exporting variable in bbappend file
@ 2016-08-30 12:30 Gujulan Elango, Hari Prasath (H.)
  2016-09-06 18:18 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Gujulan Elango, Hari Prasath (H.) @ 2016-08-30 12:30 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

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 ?


Thanks & Regards,

Hari Prasath

[-- Attachment #2: Type: text/html, Size: 1536 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with exporting variable in bbappend file
  2016-08-30 12:30 Problem with exporting variable in bbappend file Gujulan Elango, Hari Prasath (H.)
@ 2016-09-06 18:18 ` Khem Raj
  2016-09-12  4:13   ` Gujulan Elango, Hari Prasath (H.)
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2016-09-06 18:18 UTC (permalink / raw)
  To: Gujulan Elango, Hari Prasath (H.); +Cc: yocto


[-- Attachment #1.1: Type: text/plain, Size: 1315 bytes --]


> On Aug 30, 2016, at 5:30 AM, Gujulan Elango, Hari Prasath (H.) <hgujulan@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@yoctoproject.org <mailto:yocto@yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>

[-- Attachment #1.2: Type: text/html, Size: 6704 bytes --]

[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with exporting variable in bbappend file
  2016-09-06 18:18 ` Khem Raj
@ 2016-09-12  4:13   ` Gujulan Elango, Hari Prasath (H.)
  2016-09-12  7:34     ` Paul Eggleton
  0 siblings, 1 reply; 4+ messages in thread
From: Gujulan Elango, Hari Prasath (H.) @ 2016-09-12  4:13 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

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@gmail.com] 
Sent: Tuesday, September 06, 2016 11:49 PM
To: Gujulan Elango, Hari Prasath (H.)
Cc: yocto@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@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@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with exporting variable in bbappend file
  2016-09-12  4:13   ` Gujulan Elango, Hari Prasath (H.)
@ 2016-09-12  7:34     ` Paul Eggleton
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2016-09-12  7:34 UTC (permalink / raw)
  To: Gujulan Elango, Hari Prasath (H.); +Cc: yocto

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@gmail.com]
> Sent: Tuesday, September 06, 2016 11:49 PM
> To: Gujulan Elango, Hari Prasath (H.)
> Cc: yocto@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@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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-12  7:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-30 12:30 Problem with exporting variable in bbappend file Gujulan Elango, Hari Prasath (H.)
2016-09-06 18:18 ` Khem Raj
2016-09-12  4:13   ` Gujulan Elango, Hari Prasath (H.)
2016-09-12  7:34     ` Paul Eggleton

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.