[oe] u-boot-utils and UBOOT_MACHINE?

Martyn Welch martyn.welch at ge.com
Wed Mar 9 13:12:37 UTC 2011


On 09/03/11 10:42, Steffen Sledz wrote:
> The current recipe for the u-boot-utils (u-boot-utils_1.2.0.bb) contains this:
> 
> ------------------->snip<--------------------
> do_configure() {
>         oe_runmake Sandpoint8240_config
> }
> ------------------->snip<--------------------
> 
> This seems to be very machine specific.
> 
> I'm not a u-boot-tools specialist. If the tools are not machine specific and the above line is just a placeholder, this should be documented.
> 

It's been a while since I looked at u-boot-utils, I think the tools are
generic but the build scripts need a config to run.

> But if the tools itself are machine specific i believe there should be something like
> 
> ------------------->snip<--------------------
> do_configure() {
>         oe_runmake ${UBOOT_MACHINE}
> }
> ------------------->snip<--------------------
> 

I guess you mean "oe_runmake ${UBOOT_MACHINE}_config" :-)

I doubt I'm the only one who uses OE to generate Linux images without having a
suitable U-Boot machine that could be used to satisfy that. We could put
Sandpoint8240 in each such machine conf and document why there. I also assume
that there are machine confs that currently lack a UBOOT_MACHINE variable
which could cause problems building the U-Boot tools if this change is made,
especially for machines that might exist in an overlay (more likely now with
OE-core?).

> and package build should go into machine specific workdir. Right?
> 

I think they are generic, though I'm no expert.

Martyn

-- 
Martyn Welch (Principal Software Engineer) | Registered in England and
GE Intelligent Platforms                   | Wales (3828642) at 100
T +44(0)127322748                          | Barbirolli Square, Manchester,
E martyn.welch at ge.com                      | M2 3AB  VAT:GB 927559189




More information about the Openembedded-devel mailing list