mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
oe.data: expand the flags
(From OE-Core rev: 8b9de6d2ad2d351bbc288cbb12562806ba8edae2) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e4921fda5b
commit
4da8c86ca2
@@ -6,6 +6,11 @@ def typed_value(key, d):
|
|||||||
to determine the type and parameters for construction."""
|
to determine the type and parameters for construction."""
|
||||||
var_type = d.getVarFlag(key, 'type')
|
var_type = d.getVarFlag(key, 'type')
|
||||||
flags = d.getVarFlags(key)
|
flags = d.getVarFlags(key)
|
||||||
|
if flags is not None:
|
||||||
|
flags = dict((flag, bb.data.expand(value, d))
|
||||||
|
for flag, value in flags.iteritems())
|
||||||
|
else:
|
||||||
|
flags = {}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return oe.maketype.create(d.getVar(key, True) or '', var_type, **flags)
|
return oe.maketype.create(d.getVar(key, True) or '', var_type, **flags)
|
||||||
|
|||||||
Reference in New Issue
Block a user