[yocto] u-boot recipe: Missing dependencies

Martin Jansa martin.jansa at gmail.com
Mon Oct 9 04:17:52 PDT 2017


Be aware that when you provide python-native, it's more likely that
swig-native will be detected in sysroot as well and then u-boot will fail
to build libfdt python library.

To prevent this autodetection you can use something like this:

do_compile_prepend () {
    sed 's@\(^always += $(if $(shell which swig 2>
/dev/null),_libfdt.so)$\)@# do not autodetect swig, there is no swig-native
dependency \1 at g' -i ${S}/tools/Makefile
}

which isn't needed in Yocto 2.3 Pyro and newer thanks to RSS and HOSTTOOLs
filtering.


On Mon, Oct 9, 2017 at 12:30 PM, Burton, Ross <ross.burton at intel.com> wrote:

> On 8 October 2017 at 18:04, Eric Schwarz <eas at sw-optimization.com> wrote:
>
>> Don't _append when you can just extend the assignment above.
>>>
>>
>> I just did it that way for the moment since I wanted to circumvent merge
>> conflicts when I upgrade the underlying recipes from openembedded.
>
>
> Well it's ugly, so if you want a patch in oe-core then don't introduce
> ugly for your convenience.
>
>
>> Depending on python-native does nothing as the binary isn't in $PATH
>>> still.
>>>
>>
>> I thought any Yocto native binaries built are in the PATH automatically.
>> - How
>> to fix this/do it correctly?
>>
>
> You need to inherit python3native, as python (and some others) are opt-in.
>
>
>> Can you provide a configuration to make U-Boot build on x86 for testing?
>>>
>>
>> I put now some patches in ordered manner on top of the original recipes
>> from
>> openembedded.
>> However, before sending I would like to fix two issues so the recipes can
>> go
>> into mainline immediately.
>>
>> 1.) I am working w/ -morty Yocto branch at the moment. The 'u-boot.inc'
>> from
>>     openembedded does not work w/ -morty.
>>     I get the following error "AttributeError: module 'bb.utils' has no
>>     attribute 'filter'". Building w/ the original -morty 'u-boot.inc'
>> works.
>>
>
> Yes, bb.utils.filter() is a new function that isn't in morty.
>
> Ross
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171009/1f2937ea/attachment.html>


More information about the yocto mailing list