[OE-core] [PATCH 01/24] base.bbclass: Add buildcfg multilib values

Alexander Kanavin alexander.kanavin at linux.intel.com
Sat May 26 09:51:07 UTC 2018


On 05/25/2018 05:48 AM, Robert Yang wrote:
> +def buildcfg_multilibs(d):
> +    variants = d.getVar("MULTILIB_VARIANTS", True) or ""
> +    for variant in variants.split():
> +        localdata = bb.data.createCopy(d)
> +        overrides = localdata.getVar("OVERRIDES", False) + ":virtclass-multilib-" + variant
> +        localdata.setVar("OVERRIDES", overrides)
> +        bb.data.update_data(localdata)
> +        statusvars = oe.data.typed_value('BUILDCFG_VARS', d)
> +        for var in statusvars:
> +            origvalue = d.getVar(var, True)
> +            variantvalue = localdata.getVar(var, True)
> +            if origvalue is not None and variantvalue is not None and origvalue != variantvalue:
> +                yield '%-7s %-17s = "%s"' % (variant + ":", var, variantvalue)
> +

There are helper functions in utils.bbclass that take care of multilib 
datastore setup, please use them instead of re-implementing what they 
do. USe all_multlilib_tune_values() in particular.


Alex



More information about the Openembedded-core mailing list