[U-Boot] [RFC PATCH v2 03/20] sandbox: Add architecture image support

Simon Glass sjg at chromium.org
Mon Sep 26 21:39:28 CEST 2011


Hi Mike,

On Sun, Sep 25, 2011 at 10:01 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Friday, September 23, 2011 12:22:05 Simon Glass wrote:
>>  #elif defined(__sparc__)
>>       if (!image_check_arch (hdr, IH_ARCH_SPARC))
>> +#elif defined(CONFIG_SANDBOX_ARCH)
>> +     if (0)
>>  #else
>>  # error Unknown CPU type
>>  #endif
>
> i wonder if this could be useful ... wouldn't it allow some testing of uImages
> if we had image_check_arch(hdr, IN_ARCH_SANDBOX) ?

Possibly - it is a bit odd since we can't get the architecture from
the compiler. it would need to go first in the list since sandbox can
be built on any platform. I will take a look.

Regards,
Simon

> -mike
>


More information about the U-Boot mailing list