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:
Chris Larson 2011-03-29 12:53:28 -07:00 committed by Richard Purdie
parent e4921fda5b
commit 4da8c86ca2
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,11 @@ def typed_value(key, d):
to determine the type and parameters for construction."""
var_type = d.getVarFlag(key, 'type')
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:
return oe.maketype.create(d.getVar(key, True) or '', var_type, **flags)