[yocto] esdk without using Poky?

Paul Eggleton paul.eggleton at linux.intel.com
Thu Feb 2 17:54:07 PST 2017


On Tuesday, 31 January 2017 8:09:01 AM NZDT Gary Thomas wrote:
> On 2017-01-04 14:25, Gary Thomas wrote:
> > On 2017-01-04 13:54, Patrick Ohly wrote:
> >> On Wed, 2017-01-04 at 12:05 +0100, Gary Thomas wrote:
> >>> On 2016-11-04 04:41, Paul Eggleton wrote:
> >>>> On Wed, 02 Nov 2016 07:25:13 Gary Thomas wrote:
> >>>>> I've tested your patches for this (from the OE-core mailing list)
> >>>>> and I can now build and use the eSDK for my board :-)
> >>>> 
> >>>> Great!
> >>>> 
> >>>>> I do have a couple observations/questions:
> >>>>> 
> >>>>> * I added my missing tool with this line in my local.conf
> >>>>> 
> >>>>>       TOOLCHAIN_HOST_TASK_append = " nativesdk-ti-cgt-pru"
> >>>>>    
> >>>>>    Why did this cause many of the nativesdk tools to have to be
> >>>>>    rebuilt?
> >>>> 
> >>>> So just FYI this will only work for the standard SDK, it's not the
> >>>> right way to add these tools for the eSDK - in fact it may break the
> >>>> eSDK due to bringing things into the native sysroot that shouldn't be
> >>>> there.
> >>>> 
> >>>> At the moment I think the only way to properly add this to the eSDK is
> >>>> to do this:
> >>>> 
> >>>> SDK_TARGETS += "ti-cgt-pru-native:do_populate_sysroot"
> >>>> 
> >>>> We don't document this, and it's a little awkward in any case. I'll
> >>>> work on
> >>>> it.
> >>> 
> >>> This was working great for me until I just upgraded to the latest [poky]
> >>> master (rev dbb247cac5fbf7b037e4955f9793828451723924).  With the
> >>> SDK_TARGETS line in my local.conf, I get this error:
> >>> 
> >>> ERROR: Error for
> >>> /local/poky-cutting-edge/meta-rainier-am335x-p8701/packages/images/magi
> >>> card-demo-image_1.0.bb, dependency
> >>> ti-cgt-pru-native:do_populate_sysroot:do_populate_sysroot>>> 
> >>                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >>>  
> >>>  does not contain exactly one ':' character.
> >>>  
> >>>   Task 'rdepends' should be specified in the form 'packagename:task'
> >>> 
> >>> Any ideas what changed and how I get it working again?
> >> 
> >> I enhanced the error checking, and the rdepends varflag in your example
> >> indeed isn't valid. ":do_populate_sysroot" got appended twice to the
> >> recipe name. That error got ignored silently earlier.
> >> 
> >> populate_sdk_ext.bbclass appends ":do_populate_sysroot" when setting
> >> 
> >> do_sdk_depends[rdepends], so you should use just:
> >>    SDK_TARGETS += "ti-cgt-pru-native"
> > 
> > Thanks that worked - at least I can build, I haven't checked the esdk yet.
> 
> Sadly, this is broken once again.  I just upgraded my Poky/Yocto
> to rev d45d4a5a21ab4209b87331dddf515ecdb62367fa and if I have the
>    SDK_TARGETS += "ti-cgt-pru-native"
> in my local.conf, I get this hard error:
> 
> ERROR: Task do_sdk_depends in
> /home/gary/tmp/p8701_2017-01-31/opt/amltd/poky/meta-rainier-am335x-p8701/pac
> kages/images/installer-image.bb rdepends upon non-existent task
> do_package_write_ipk in
> virtual:native:/home/gary/tmp/p8701_2017-01-31/opt/amltd/poky/meta-ti/recipe
> s-ti/devtools/ti-cgt-pru_2.1.1.bb ERROR: Command execution failed: 1
> 
> Any ideas how to proceed?

Sorry for the delay - I have a fix for this that I'll send out soon (basically 
drop setting SDK_RDEPENDS in populate_sdk_ext.bbclass). I'm not sure what 
happened recently to cause this to come up, but the dependency is erroneous 
and it appears SDK_REPENDS doesn't need to be set anyway.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list