All of lore.kernel.org
 help / color / mirror / Atom feed
* populate_sdk_image function removed in Yocto1.6.1?
@ 2014-09-03 17:52 Wang, Yang Y
  2014-09-03 19:44 ` Saul Wold
  0 siblings, 1 reply; 3+ messages in thread
From: Wang, Yang Y @ 2014-09-03 17:52 UTC (permalink / raw)
  To: poky

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

Hi,

  I got an issue for the secondary toolchain support with Yocto 1.6.1. In the previous version, e.g. Yocto1.5 poky-dora, I has the function to overwrite the environment script:



populate_sdk_image_append() {

         toolchain_create_sdk_env_script_alt ${SDK_OUTPUT}/${SDKPATH}/environment-setup-${REAL_MULTIMACH_TARGET_SYS}

}



The function populate_sdk_image is defined in the meta/classes/populate_sdk_base.bbclass

This works well for Yocto 1.5



However in the Yocto 1.6, the function populate_sdk_image was removed from populate_sdk_base.bbclass.

So the populate_sdk_image_append() won't work for my class and my environment scripts will not be generated.

Is this expected changes in the Yocto1.6? In Yocto1.6, which function can I use with append() to generate my environment file? I checked populate_sdk_append() but seems not work.

Could anyone help advise?
Thank you.
-Yang


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

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

* Re: populate_sdk_image function removed in Yocto1.6.1?
  2014-09-03 17:52 populate_sdk_image function removed in Yocto1.6.1? Wang, Yang Y
@ 2014-09-03 19:44 ` Saul Wold
  2014-09-03 20:30   ` Wang, Yang Y
  0 siblings, 1 reply; 3+ messages in thread
From: Saul Wold @ 2014-09-03 19:44 UTC (permalink / raw)
  To: Wang, Yang Y, poky

On 09/03/2014 10:52 AM, Wang, Yang Y wrote:
> Hi,
>
>    I got an issue for the secondary toolchain support with Yocto 1.6.1. In the previous version, e.g. Yocto1.5 poky-dora, I has the function to overwrite the environment script:
>
I think what you are looking for is the populate_sdk task that can be 
run again *image* targets

Example:

bitbake -c populate_sdk core-image-sato
>
>
> populate_sdk_image_append() {
>
>           toolchain_create_sdk_env_script_alt ${SDK_OUTPUT}/${SDKPATH}/environment-setup-${REAL_MULTIMACH_TARGET_SYS}
>
> }
>
you should beable to do a populate_sdk_append()
>
>
> The function populate_sdk_image is defined in the meta/classes/populate_sdk_base.bbclass
>
> This works well for Yocto 1.5
>
>
>
> However in the Yocto 1.6, the function populate_sdk_image was removed from populate_sdk_base.bbclass.
>
> So the populate_sdk_image_append() won't work for my class and my environment scripts will not be generated.
>
> Is this expected changes in the Yocto1.6? In Yocto1.6, which function can I use with append() to generate my environment file? I checked populate_sdk_append() but seems not work.
>
What are you trying to do?  Have you looked at 
toolchain-scripts.bbclass, you might look at the 
toolchain_create_sdk_env_script()

Sau!

> Could anyone help advise?
> Thank you.
> -Yang
>
>
>
>


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

* Re: populate_sdk_image function removed in Yocto1.6.1?
  2014-09-03 19:44 ` Saul Wold
@ 2014-09-03 20:30   ` Wang, Yang Y
  0 siblings, 0 replies; 3+ messages in thread
From: Wang, Yang Y @ 2014-09-03 20:30 UTC (permalink / raw)
  To: Saul Wold, poky

Hi Saul,
	Thank you very much for the reply.
Yes, I'm using "bitbake -c populate_sdk core-image-sato" to build the SDK.
I'm trying to generate a new environment-setup-i586-wrs-linux-icc script which is based on the GCC environment file environment-setup-i586-wrs-linux.
In my implementation, 
	populate_sdk_image_append() {
           toolchain_create_sdk_env_script_alt  ${SDK_OUTPUT}/${SDKPATH}/environment-setup-${REAL_MULTIMACH_TARGET_SYS
    }
the populate_sdk_image_append() function will be invoked to generate the new environment script file. toolchain_create_sdk_env_script_alt is my implementation for the new script file. 
My implementation is very similar as http://www.openembedded.org/wiki/Adding_a_secondary_toolchain This works for the yocto1.5 release.
However in the yocto1.6.1, this is not working. I checked the file meta/classes/populate_sdk_base.bbclass in yocto1.6.1 and compare with yocto 1.5, the function populate_sdk_image was removed in yocto1.6.1 when creating the sdk image.
So not sure why this happens.
I do try the populate_sdk_append() but seems it does not work. My script file is not generated and added into sdk image.
Thanks.
-Yang


-----Original Message-----
From: Saul Wold [mailto:sgw@linux.intel.com] 
Sent: Wednesday, September 03, 2014 12:44 PM
To: Wang, Yang Y; poky@yoctoproject.org
Subject: Re: [poky] populate_sdk_image function removed in Yocto1.6.1?

On 09/03/2014 10:52 AM, Wang, Yang Y wrote:
> Hi,
>
>    I got an issue for the secondary toolchain support with Yocto 1.6.1. In the previous version, e.g. Yocto1.5 poky-dora, I has the function to overwrite the environment script:
>
I think what you are looking for is the populate_sdk task that can be run again *image* targets

Example:

bitbake -c populate_sdk core-image-sato
>
>
> populate_sdk_image_append() {
>
>           toolchain_create_sdk_env_script_alt 
> ${SDK_OUTPUT}/${SDKPATH}/environment-setup-${REAL_MULTIMACH_TARGET_SYS
> }
>
> }
>
you should beable to do a populate_sdk_append()
>
>
> The function populate_sdk_image is defined in the 
> meta/classes/populate_sdk_base.bbclass
>
> This works well for Yocto 1.5
>
>
>
> However in the Yocto 1.6, the function populate_sdk_image was removed from populate_sdk_base.bbclass.
>
> So the populate_sdk_image_append() won't work for my class and my environment scripts will not be generated.
>
> Is this expected changes in the Yocto1.6? In Yocto1.6, which function can I use with append() to generate my environment file? I checked populate_sdk_append() but seems not work.
>
What are you trying to do?  Have you looked at toolchain-scripts.bbclass, you might look at the
toolchain_create_sdk_env_script()

Sau!

> Could anyone help advise?
> Thank you.
> -Yang
>
>
>
>


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

end of thread, other threads:[~2014-09-03 20:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-03 17:52 populate_sdk_image function removed in Yocto1.6.1? Wang, Yang Y
2014-09-03 19:44 ` Saul Wold
2014-09-03 20:30   ` Wang, Yang Y

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.