diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/package.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 9b511a6bc9..70f9aaa205 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -363,6 +363,17 @@ def get_package_mapping (pkg, basepkg, d): | |||
363 | 363 | ||
364 | return pkg | 364 | return pkg |
365 | 365 | ||
366 | def get_package_additional_metadata (pkg_type, d): | ||
367 | base_key = "PACKAGE_ADD_METADATA" | ||
368 | for key in ("%s_%s" % (base_key, pkg_type.upper()), base_key): | ||
369 | if d.getVar(key) is None: | ||
370 | continue | ||
371 | d.setVarFlag(key, "type", "list") | ||
372 | if d.getVarFlag(key, "separator") is None: | ||
373 | d.setVarFlag(key, "separator", "\\n") | ||
374 | metadata_fields = [field.strip() for field in oe.data.typed_value(key, d)] | ||
375 | return "\n".join(metadata_fields).strip() | ||
376 | |||
366 | def runtime_mapping_rename (varname, pkg, d): | 377 | def runtime_mapping_rename (varname, pkg, d): |
367 | #bb.note("%s before: %s" % (varname, d.getVar(varname, True))) | 378 | #bb.note("%s before: %s" % (varname, d.getVar(varname, True))) |
368 | 379 | ||