Re: [yocto] Environment Variables being unset by bitbake?

2014-07-10 Thread Nicolas Dechesne
On Wed, Jul 9, 2014 at 10:58 PM, Allen Kennedy Jr. al...@kennedystuff.com wrote: Any ideas why or how this is getting unset, and how to fix? I couldn't find any documentation that talks about this. by the way, this is not a bug, and doesn't need to be 'fixed'. this is purposely done this way to

Re: [yocto] Environment Variables being unset by bitbake?

2014-07-10 Thread Allen Kennedy Jr.
Nicholas, Thanks for your response. I tried the following permutations: I added this: BB_ENV_EXTRAWHITE += JAVA_HOME to the top of my recipe. I added this: BB_ENV_EXTRAWHITE += JAVA_HOME to the top of my recipe. I added this: BB_ENV_EXTRAWHITE = JAVA_HOME to the top of my recipe. I added this:

Re: [yocto] Environment Variables being unset by bitbake?

2014-07-10 Thread Nicolas Dechesne
+list. please let's discuss on the list. On Thu, Jul 10, 2014 at 4:01 PM, Allen Kennedy Jr. al...@kennedystuff.com wrote: That did it. thanks. Is there is no way to add this to the layer? Must I distrubute my layer with instructions to set BB_ENV_EXTRAWHITE variable before running bitbake?

Re: [yocto] Environment Variables being unset by bitbake?

2014-07-10 Thread Allen Kennedy Jr.
Thanks again. Perhaps I'll write a shell script that calls bitbake after properly setting up the environment. On Thu, Jul 10, 2014 at 9:23 AM, Nicolas Dechesne nicolas.deche...@linaro.org wrote: +list. please let's discuss on the list. On Thu, Jul 10, 2014 at 4:01 PM, Allen Kennedy Jr.

[yocto] Environment Variables being unset by bitbake?

2014-07-09 Thread Allen Kennedy Jr.
I am trying to run java program from a recipe. I get an error that JAVA_HOME is not set. I can verify that JAVA_HOME is set by echo $JAVA_HOME. I can then run the program without issue, but from within a recipe it seems that $JAVA_HOME is unset. I have verified this with 'bbnote java is here:

Re: [yocto] Environment Variables being unset by bitbake?

2014-07-09 Thread Patrick Doyle
Oh! I think I know the answer to this one! Check out BB_ENV_EXTRAWHITE at http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#var-BB_ENV_EXTRAWHITE. If you set that to something like JAVA_HOME, that might do what you want. --wpd On Wed, Jul 9, 2014 at 4:58