[OE-core] u-boot-fw-utils -> u-boot-fw-utils-cross

Otavio Salvador otavio at ossystems.com.br
Fri Sep 13 19:16:38 UTC 2013


On Fri, Sep 13, 2013 at 3:55 PM, Anders Darander <anders at chargestorm.se> wrote:
> Otavio Salvador <otavio at ossystems.com.br> wrote:
>>On Fri, Sep 13, 2013 at 4:56 AM, Anders Darander
>><anders at chargestorm.se> wrote:
>>> As I've started to bring our internal distro and machines up to the
>>> lates oe-core, I've got some issues with the u-boot-fw-utils to
>>> u-boot-fw-utils-cross transition.
>>
>>Right.
>>
>>> In my old branch, I used u-boot-fw-utils_2011.06. This used to
>>compile
>>> and package fw_printenv(setenv) just fine.
>>>
>>> In the new, u-boot-fw-utils-cross_2013.07.bb, fw_printenv is now
>>built
>>> using HOSTCC instead of the cross-compiler. The old recipe used to
>>> include:
>>> EXTRA_OEMAKE = 'HOSTCC="${CC}"'
>>> as u-boot defaults to build everything under tools/ using HOSTC.
>>
>>Yes; this is intended to be used in the host. I can add support for
>>use in target as well (or help you to do it).
>
> Sorry that I didn't see this during the review of your patch that made this change. If u-boot-fw-utils-cross of intended to be used on the host, why did you then replace the old u-boot-fw-utils with this recipe?
>
> The old u-boot-fw-utils were to create fw_printenv to be used on the _target_ not on the host. Unfortunately, I don't think this was ever mentioned during the patch review...

Yes but this was a /bug/ in the build system. As it got HOSTCC so it
was indeed to be used as /host/ not target.

>>> What's the reason for this change? Currently fw_printenv is being
>>built
>>> for my host system, and not the target...
>>
>>Yes; the way to proper package it for target is from u-boot itself,
>>not on this recipe.
>
> Yep, so the commit log that makes the transition from u-boot-fw-utils to u-boot-fw-utils-cross should have mentioned that the purpose of those two packages are completely different.

Right; I might not been clear on this.

>>> Further more, fw_printenv does not get packaged. I can see that
>>> fw_printenv is installed in ${WORKDIR}/image, but never moved to
>>> ${WORKDIR}/package. I guess that this is caused by inheriting
>>> cross.bbclass?
>>>
>>> Am I missing something in my distro config, or have I overlooked
>>> something else? fw_printenv doesn't really make sense for me to run
>>on
>>> the host, and is (in my case) rather essential on the target.
>>>
>>> I guess that I'm doing something wrong; can anyone give me some hint
>>on
>>> where to look? Or do we have an issue with the u-boot-fw-utils-cross
>>> recipe?
>>
>>No, you are right. I can help you to solve it (or solve it and send
>>you the solution) if you want.
>
> I've got a working u-boot-fw-utils recipe that I can submit. I'll look into this on Monday morning, to ensure that it's of enough quality to publish.

Ahh neat! So please e-mail me and I help to clean it.

> Just curious, what use case do you have for fw_* the build host?

So we can mangle environment per image ;-)

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list