[OE-core] [PATCH 01/24] base.bbclass: Add buildcfg multilib values
Robert Yang
liezhi.yang at windriver.com
Mon May 28 06:56:09 UTC 2018
On 05/28/2018 01:23 PM, Alexander Kanavin wrote:
> 2018-05-28 6:24 GMT+03:00 Robert Yang <liezhi.yang at windriver.com>:
>
>> Thanks for the reply, but I'm afraid that all_multlilib_tune_values() isn't
>> suitable for this case, what need to display is something like:
>>
>> lib32: DEFAULTTUNE = "x86"
>> lib32: TARGET_SYS = "i686-pokymllib32-linux"
>> lib32: TUNE_FEATURES = "m32"
>>
>> But all_multlilib_tune_values() returns all values, e.g:
>>
>> DEFAULTTUNE = "core2-64 x86"
>
> That's right, but you should still use get_multilib_datastore()
> instead of setting up localdata manually
Thanks, make sense, updated in the repo:
+def buildcfg_multilibs(d):
+ variants = d.getVar("MULTILIB_VARIANTS", True) or ""
+ for variant in variants.split():
+ localdata = get_multilib_datastore(variant, d)
+ statusvars = oe.data.typed_value('BUILDCFG_VARS', d)
+ for var in statusvars:
+ origvalue = d.getVar(var, True)
+ variantvalue = localdata.getVar(var, True)
+ if origvalue and variantvalue and origvalue != variantvalue:
+ yield '%-7s %-17s = "%s"' % (variant + ":", var, variantvalue)
+
// Robert
>
> Alex
>
More information about the Openembedded-core
mailing list