[oe] [meta-oe][PATCH] llvm3.2: new recipe

Khem Raj raj.khem at gmail.com
Tue Jun 11 08:03:01 UTC 2013


On Tue, Jun 11, 2013 at 12:55 AM, Marcin Juszkiewicz
<marcin at juszkiewicz.com.pl> wrote:
> W dniu 11.06.2013 09:48, Khem Raj pisze:
>> On Sun, Jun 2, 2013 at 2:55 AM, Marcin Juszkiewicz
>> <marcin at juszkiewicz.com.pl> wrote:
>>> W dniu 02.06.2013 11:33, Jonathan Liu pisze:
>>>> +def get_llvm_arch(d):
>>>> +    import bb;
>>>> +
>>>> +    arch = bb.data.getVar('TARGET_ARCH', d, 1)
>>>> +
>>>> +    if arch == "x86_64" or arch == "i486" or arch == "i586" or arch == "i686":
>>>> +        arch = "x86"
>>>> +    elif arch == "x86_64":
>>>> +        arch = "x86_64"
>>>> +    elif arch == "arm":
>>>> +        arch = "arm"
>>>> +    elif arch == "mipsel" or arch == "mips":
>>>> +        arch = "mips"
>>>> +    elif arch == "powerpc" or arch == "powerpc64":
>>>> +        arch = "powerpc"
>>>> +    else:
>>>> +        bb.warn("%s does not support %s yet" % (bb.data.getVar('PN', d, 1), arch) );
>>>> +
>>>> +    return arch
>>>
>>> Can we get rid of such blocks? They are worthless and only generate
>>> extra support questions when OE newbies use OE with 'not supported'
>>> architectures.
>
>> why do you think they are worthless ? when they give good information
>> instead of failing to build and then generating support question
>> which need more work to come to same conclusion
>
> $ MACHINE=genericarmv8 bitbake nano
> "llvm is not supported"
> "openjdk is not supported"
> "another-thing-you-do-not-care-for-this-build is not supported"
>

it could be said if you do not care for such recipes then BBMASK them
and message
well may be it could be make bb.note instead of bb.warn to make it
more of FYI kind of thing

> This is how your builds look for not supported architectures.
>
> OE has COMPATIBLE_HOST variable which can be used by recipe maintainers
> to mark which architectures are supported.

in this case arch does not map to what OE's target arch is so you have
to do it twice if you want
to use COMPATIBLE_HOST
and suppose a non supported arch becomes supported you have to change
both places.

> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list